File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -273,19 +273,19 @@ controller:
273273
274274 *Simply inject doctrine instead of fetching it from the container *
275275
276- :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::getUser ` (service: ``security.context ``)
276+ :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::getUser ` (service: ``security.token_storage ``)
277277 .. code-block :: php
278278
279279 $user = null;
280- $token = $securityContext ->getToken();
280+ $token = $tokenStorage ->getToken();
281281 if (null !== $token && is_object($token->getUser())) {
282282 $user = $token->getUser();
283283 }
284284
285- :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::isGranted ` (service: ``security.context ``)
285+ :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::isGranted ` (service: ``security.authorization_checker ``)
286286 .. code-block :: php
287287
288- $securityContext ->isGranted($attributes, $object);
288+ $authChecker ->isGranted($attributes, $object);
289289
290290:method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::redirect `
291291 .. code-block :: php
You can’t perform that action at this time.
0 commit comments