Commit 2fdc86d
committed
minor symfony#10110 Undefined variable $userName in example (Trekels)
This PR was submitted for the 4.1 branch but it was merged into the 2.8 branch instead (closes symfony#10110).
Discussion
----------
Undefined variable $userName in example
The $username variable in the `WebServiceUserProvider` example is not set, since the user object must implement the `UserInterface` (according to best practice) we can set the variable by calling `$user->getUsername()`.
Commits
-------
e6d500f Undefined variable $userName in example1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
0 commit comments