Skip to content

Commit 2a14cfd

Browse files
committed
Tweak
1 parent dd28bf8 commit 2a14cfd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

security/firewall_restriction.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ If the above options don't fit your needs you can configure any service implemen
232232
233233
<config>
234234
<!-- ... -->
235-
<firewall name="secured_area" request-matcher="app.firewall.secured_area.request_matcher">
235+
<firewall name="secured_area" request-matcher="App\Security\CustomRequestMatcher">
236236
<!-- ... -->
237237
</firewall>
238238
</config>
@@ -241,13 +241,14 @@ If the above options don't fit your needs you can configure any service implemen
241241
.. code-block:: php
242242
243243
// config/packages/security.php
244+
use App\Security\CustomRequestMatcher;
244245
use Symfony\Config\SecurityConfig;
245246
246247
return static function (SecurityConfig $security) {
247248
// ....
248249
249250
$security->firewall('secured_area')
250-
->requestMatcher('app.firewall.secured_area.request_matcher')
251+
->requestMatcher(CustomRequestMatcher::class)
251252
// ...
252253
;
253254
};

0 commit comments

Comments
 (0)