File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -237,15 +237,17 @@ which contains request matchers and a corresponding set of attributes that
237
237
are required for the current user to get access to the application::
238
238
239
239
use Symfony\Component\HttpFoundation\RequestMatcher;
240
+ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
240
241
use Symfony\Component\Security\Http\AccessMap;
241
242
use Symfony\Component\Security\Http\Firewall\AccessListener;
242
243
243
244
$accessMap = new AccessMap();
245
+ $tokenStorage = new TokenStorage();
244
246
$requestMatcher = new RequestMatcher('^/admin');
245
247
$accessMap->add($requestMatcher, ['ROLE_ADMIN']);
246
248
247
249
$accessListener = new AccessListener(
248
- $securityContext ,
250
+ $tokenStorage ,
249
251
$accessDecisionManager,
250
252
$accessMap,
251
253
$authenticationManager
You can’t perform that action at this time.
0 commit comments