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
* 3.4:
[Validator] fix access to uninitialized property when getting value
[HttpKernel] Fix stale-if-error behavior, add tests
Improved error message when no supported user provider is found
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/User/ChainUserProvider.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ public function refreshUser(UserInterface $user)
91
91
$e->setUsername($user->getUsername());
92
92
throw$e;
93
93
} else {
94
-
thrownewUnsupportedUserException(sprintf('The account "%s" is not supported.', \get_class($user)));
94
+
thrownewUnsupportedUserException(sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', \get_class($user)));
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Http/Firewall/ContextListener.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -255,7 +255,7 @@ protected function refreshUser(TokenInterface $token)
255
255
returnnull;
256
256
}
257
257
258
-
thrownew \RuntimeException(sprintf('There is no user provider for user "%s".', $userClass));
258
+
thrownew \RuntimeException(sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', $userClass));
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ final protected function getUserProvider($class)
233
233
}
234
234
}
235
235
236
-
thrownewUnsupportedUserException(sprintf('There is no user provider that supports class "%s".', $class));
236
+
thrownewUnsupportedUserException(sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', $class));
0 commit comments