diff --git a/Firewall/ContextListener.php b/Firewall/ContextListener.php index 9193a5c5..9243119a 100644 --- a/Firewall/ContextListener.php +++ b/Firewall/ContextListener.php @@ -292,7 +292,7 @@ protected function refreshUser(TokenInterface $token) return null; } - throw new \RuntimeException(sprintf('There is no user provider for user "%s".', $userClass)); + throw new \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)); } private function safelyUnserialize(string $serializedToken) diff --git a/RememberMe/AbstractRememberMeServices.php b/RememberMe/AbstractRememberMeServices.php index 9c9e1c07..86919599 100644 --- a/RememberMe/AbstractRememberMeServices.php +++ b/RememberMe/AbstractRememberMeServices.php @@ -234,7 +234,7 @@ final protected function getUserProvider(string $class): UserProviderInterface } } - throw new UnsupportedUserException(sprintf('There is no user provider that supports class "%s".', $class)); + throw new UnsupportedUserException(sprintf('There is no user provider for user "%s". Shouldn\'t the "supportsClass()" method of your user provider return true for this classname?', $class)); } /**