You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #5450 Fixing "Undefined method" error in code example (nebkam)
This PR was submitted for the 2.7 branch but it was merged into the 2.6 branch instead (closes#5450).
Discussion
----------
Fixing "Undefined method" error in code example
| Q | A
| ------------- | ---
| Doc fix? | yes
| New docs? | no
| Applies to | 2.7
| Fixed tickets | -
The code example tries to call `getToken` on `Symfony\Component\Security\Core\Authorization\AuthorizationChecker`, which fails on Symfony 2.7 because the method is undefined.
This change utilizes the TokenStorage class, introduced in Symfony 2.6
Commits
-------
fa3936b Fixing "Undefined method" error on Symfony 2.7
0 commit comments