summaryrefslogtreecommitdiffstats
path: root/Core/Exception
diff options
context:
space:
mode:
authorAlexander <iam.asm89@gmail.com>2012-07-15 17:38:53 +0200
committerAlexander <iam.asm89@gmail.com>2013-01-07 20:58:58 +0100
commit2a58d99772d05834fb6687268d49f256e55df4bb (patch)
tree311ece2578e2eb51590f19bcf937afea77dee312 /Core/Exception
parent7f5659fa1622474a60de0578f0c7014b22746da2 (diff)
downloadsymfony-security-2a58d99772d05834fb6687268d49f256e55df4bb.zip
symfony-security-2a58d99772d05834fb6687268d49f256e55df4bb.tar.gz
symfony-security-2a58d99772d05834fb6687268d49f256e55df4bb.tar.bz2
[Security] Introduced `UsernameNotFoundException#get/setUsername`
Diffstat (limited to 'Core/Exception')
-rw-r--r--Core/Exception/UsernameNotFoundException.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/Core/Exception/UsernameNotFoundException.php b/Core/Exception/UsernameNotFoundException.php
index 2dc5534..421fada 100644
--- a/Core/Exception/UsernameNotFoundException.php
+++ b/Core/Exception/UsernameNotFoundException.php
@@ -19,6 +19,8 @@ namespace Symfony\Component\Security\Core\Exception;
*/
class UsernameNotFoundException extends AuthenticationException
{
+ private $username;
+
/**
* {@inheritDoc}
*/
@@ -26,4 +28,24 @@ class UsernameNotFoundException extends AuthenticationException
{
return 'security.exception.username_not_found_exception';
}
+
+ /**
+ * Get the username.
+ *
+ * @return string
+ */
+ public function getUsername()
+ {
+ return $this->username;
+ }
+
+ /**
+ * Set the username.
+ *
+ * @param string $username
+ */
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
}