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
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 };
You can’t perform that action at this time.
0 commit comments