Commit 9dafd45
committed
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.71 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments