diff options
author | Alexander <iam.asm89@gmail.com> | 2012-07-15 15:16:07 +0200 |
---|---|---|
committer | Alexander <iam.asm89@gmail.com> | 2013-01-07 20:58:57 +0100 |
commit | 84296286f4b9cfd4bc1b88c2245d10a0ee32a367 (patch) | |
tree | 2a00e491edbe3d689010711a2f328370684b6772 /Core/Exception/AuthenticationException.php | |
parent | ce45cc1049e24b3400b5f5ba1f40f8ba53866eeb (diff) | |
download | symfony-security-84296286f4b9cfd4bc1b88c2245d10a0ee32a367.zip symfony-security-84296286f4b9cfd4bc1b88c2245d10a0ee32a367.tar.gz symfony-security-84296286f4b9cfd4bc1b88c2245d10a0ee32a367.tar.bz2 |
[Security] Add `getMessageKey` and `getMessageData` to auth exceptions
Diffstat (limited to 'Core/Exception/AuthenticationException.php')
-rw-r--r-- | Core/Exception/AuthenticationException.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Core/Exception/AuthenticationException.php b/Core/Exception/AuthenticationException.php index fbe10eb..93e395b 100644 --- a/Core/Exception/AuthenticationException.php +++ b/Core/Exception/AuthenticationException.php @@ -52,4 +52,24 @@ class AuthenticationException extends \RuntimeException implements \Serializable $this->line ) = unserialize($str); } + + /** + * Message key to be used by the translation component. + * + * @return string + */ + public function getMessageKey() + { + return 'security.exception.authentication_exception'; + } + + /** + * Message data to be used by the translation component. + * + * @return array + */ + public function getMessageData() + { + return array(); + } } |