File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ public function findUserByConfirmationToken($token)
124
124
*/
125
125
public function refreshUser (SecurityUserInterface $ user )
126
126
{
127
+ trigger_error (E_USER_DEPRECATED , 'Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' );
128
+
127
129
$ class = $ this ->getClass ();
128
130
if (!$ user instanceof $ class ) {
129
131
throw new UnsupportedUserException ('Account is not supported. ' );
@@ -152,6 +154,8 @@ public function refreshUser(SecurityUserInterface $user)
152
154
*/
153
155
public function loadUserByUsername ($ username )
154
156
{
157
+ trigger_error (E_USER_DEPRECATED , 'Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' );
158
+
155
159
$ user = $ this ->findUserByUsername ($ username );
156
160
157
161
if (!$ user ) {
@@ -216,6 +220,8 @@ protected function getEncoder(UserInterface $user)
216
220
*/
217
221
public function supportsClass ($ class )
218
222
{
223
+ trigger_error (E_USER_DEPRECATED , 'Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead. ' );
224
+
219
225
return $ class === $ this ->getClass ();
220
226
}
221
227
}
You can’t perform that action at this time.
0 commit comments