File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -240,15 +240,17 @@ which contains request matchers and a corresponding set of attributes that
240240are required for the current user to get access to the application::
241241
242242 use Symfony\Component\HttpFoundation\RequestMatcher;
243+ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
243244 use Symfony\Component\Security\Http\AccessMap;
244245 use Symfony\Component\Security\Http\Firewall\AccessListener;
245246
246247 $accessMap = new AccessMap();
248+ $tokenStorage = new TokenStorage();
247249 $requestMatcher = new RequestMatcher('^/admin');
248250 $accessMap->add($requestMatcher, ['ROLE_ADMIN']);
249251
250252 $accessListener = new AccessListener(
251- $securityContext ,
253+ $tokenStorage ,
252254 $accessDecisionManager,
253255 $accessMap,
254256 $authenticationManager
You can’t perform that action at this time.
0 commit comments