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 @@ -204,15 +204,17 @@ which contains request matchers and a corresponding set of attributes that
204
204
are required for the current user to get access to the application::
205
205
206
206
use Symfony\Component\Security\Http\AccessMap;
207
+ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
207
208
use Symfony\Component\HttpFoundation\RequestMatcher;
208
209
use Symfony\Component\Security\Http\Firewall\AccessListener;
209
210
210
211
$accessMap = new AccessMap();
212
+ $tokenStorage = new TokenStorage();
211
213
$requestMatcher = new RequestMatcher('^/admin');
212
214
$accessMap->add($requestMatcher, array('ROLE_ADMIN'));
213
215
214
216
$accessListener = new AccessListener(
215
- $securityContext ,
217
+ $tokenStorage ,
216
218
$accessDecisionManager,
217
219
$accessMap,
218
220
$authenticationManager
You can’t perform that action at this time.
0 commit comments