We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5731e5a commit 2b392ecCopy full SHA for 2b392ec
Tests/Functional/Bundle/SecuredPageBundle/Security/Core/User/ArrayUserProvider.php
@@ -34,7 +34,10 @@ public function loadUserByUsername($username)
34
$user = $this->getUser($username);
35
36
if (null === $user) {
37
- throw new UsernameNotFoundException(sprintf('User "%s" not found.', $username));
+ $e = new UsernameNotFoundException(sprintf('User "%s" not found.', $username));
38
+ $e->setUsername($username);
39
+
40
+ throw $e;
41
}
42
43
return $user;
0 commit comments