diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-10-03 09:03:36 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-10-03 09:03:36 +0200 |
commit | 323d5fe1c067338a5ebe99d97b91b8ab9f90218c (patch) | |
tree | 78356c79aaff18e00b46896e2fa4db036bf82985 /Core/Authentication | |
parent | 3eb0505158efb7d06d202863cbc4e450d7ecb336 (diff) | |
download | symfony-security-323d5fe1c067338a5ebe99d97b91b8ab9f90218c.zip symfony-security-323d5fe1c067338a5ebe99d97b91b8ab9f90218c.tar.gz symfony-security-323d5fe1c067338a5ebe99d97b91b8ab9f90218c.tar.bz2 |
[Security] changed a RuntimeException to LogicException for consistencies between the different Token classes (closes #2310)
Diffstat (limited to 'Core/Authentication')
-rw-r--r-- | Core/Authentication/Token/RememberMeToken.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Authentication/Token/RememberMeToken.php b/Core/Authentication/Token/RememberMeToken.php index 81ab1c2..fe30c21 100644 --- a/Core/Authentication/Token/RememberMeToken.php +++ b/Core/Authentication/Token/RememberMeToken.php @@ -51,7 +51,7 @@ class RememberMeToken extends AbstractToken public function setAuthenticated($authenticated) { if ($authenticated) { - throw new \RuntimeException('You cannot set this token to authenticated after creation.'); + throw new \LogicException('You cannot set this token to authenticated after creation.'); } parent::setAuthenticated(false); |