File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ If the above options don't fit your needs you can configure any service implemen
232
232
233
233
<config >
234
234
<!-- ... -->
235
- <firewall name =" secured_area" request-matcher =" app.firewall.secured_area.request_matcher " >
235
+ <firewall name =" secured_area" request-matcher =" App\Security\CustomRequestMatcher " >
236
236
<!-- ... -->
237
237
</firewall >
238
238
</config >
@@ -241,13 +241,14 @@ If the above options don't fit your needs you can configure any service implemen
241
241
.. code-block :: php
242
242
243
243
// config/packages/security.php
244
+ use App\Security\CustomRequestMatcher;
244
245
use Symfony\Config\SecurityConfig;
245
246
246
247
return static function (SecurityConfig $security) {
247
248
// ....
248
249
249
250
$security->firewall('secured_area')
250
- ->requestMatcher('app.firewall.secured_area.request_matcher' )
251
+ ->requestMatcher(CustomRequestMatcher::class )
251
252
// ...
252
253
;
253
254
};
You can’t perform that action at this time.
0 commit comments