[Security] changed a RuntimeException to LogicException for consistencies between the different Token classes (closes #2310)

This commit is contained in:
Fabien Potencier 2011-10-03 09:03:36 +02:00
parent 30ddf24df3
commit 6b16757199

View File

@ -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);