summaryrefslogtreecommitdiffstats
path: root/Exception/AuthenticationException.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2010-10-22 15:19:13 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2010-10-22 15:19:13 +0200
commitf7ba6da23e50d09fe7061778730e07cefccc0fdd (patch)
tree08fa6c375c3673d34857e64f3b0b484a28e48f45 /Exception/AuthenticationException.php
parent89174563c47a0ec86ac39aaa480df6ab404288f1 (diff)
downloadsymfony-security-f7ba6da23e50d09fe7061778730e07cefccc0fdd.zip
symfony-security-f7ba6da23e50d09fe7061778730e07cefccc0fdd.tar.gz
symfony-security-f7ba6da23e50d09fe7061778730e07cefccc0fdd.tar.bz2
[Security] removed type hint in AuthenticationException as the extra information can be of different classes
Diffstat (limited to 'Exception/AuthenticationException.php')
-rw-r--r--Exception/AuthenticationException.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/Exception/AuthenticationException.php b/Exception/AuthenticationException.php
index 939139b..3d03376 100644
--- a/Exception/AuthenticationException.php
+++ b/Exception/AuthenticationException.php
@@ -2,8 +2,6 @@
namespace Symfony\Component\Security\Exception;
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -20,22 +18,22 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
*/
class AuthenticationException extends \RuntimeException
{
- protected $token;
+ protected $extraInformation;
- public function __construct($message, TokenInterface $token = null, $code = 0, \Exception $previous = null)
+ public function __construct($message, $extraInformation = null, $code = 0, \Exception $previous = null)
{
parent::__construct($message, $code, $previous);
- $this->token = $token;
+ $this->extraInformation = $extraInformation;
}
- public function getToken()
+ public function getExtraInformation()
{
- return $this->token;
+ return $this->extraInformation;
}
- public function setToken(TokenInterface $token)
+ public function setExtraInformation($extraInformation)
{
- $this->token = $token;
+ $this->extraInformation = $extraInformation;
}
}