summaryrefslogtreecommitdiffstats
path: root/Core/Exception
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2014-06-06 05:53:34 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2014-06-06 05:53:34 +0200
commitd98bc5bd84d7bb708e4d8f411bec444276b400b2 (patch)
tree21a0a0ed971159575265bb8dc89ffcc7c5723a92 /Core/Exception
parent7c382a2d01b772e213b24fbcee6474cd54a9c4b4 (diff)
parenta003576e94bc0664d259997672e0ee7dd5888b9e (diff)
downloadsymfony-security-d98bc5bd84d7bb708e4d8f411bec444276b400b2.zip
symfony-security-d98bc5bd84d7bb708e4d8f411bec444276b400b2.tar.gz
symfony-security-d98bc5bd84d7bb708e4d8f411bec444276b400b2.tar.bz2
feature #10427 Username in UsernameNotFoundException message data (maryo)
This PR was squashed before being merged into the 2.6-dev branch (closes #10427). Discussion ---------- Username in UsernameNotFoundException message data | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Added username in UsernameNotFoundException message data Commits ------- 3dfaa19 Username in UsernameNotFoundException message data
Diffstat (limited to 'Core/Exception')
-rw-r--r--Core/Exception/UsernameNotFoundException.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Core/Exception/UsernameNotFoundException.php b/Core/Exception/UsernameNotFoundException.php
index 11607d3..8b72dc2 100644
--- a/Core/Exception/UsernameNotFoundException.php
+++ b/Core/Exception/UsernameNotFoundException.php
@@ -69,4 +69,12 @@ class UsernameNotFoundException extends AuthenticationException
parent::unserialize($parentData);
}
+
+ /**
+ * {@inheritDoc}
+ */
+ public function getMessageData()
+ {
+ return array('{{ username }}' => $this->username);
+ }
}