[Security] changed a RuntimeException to LogicException for consistencies between the different Token classes (closes #2310)
This commit is contained in:
parent
30ddf24df3
commit
6b16757199
@ -51,7 +51,7 @@ class RememberMeToken extends AbstractToken
|
|||||||
public function setAuthenticated($authenticated)
|
public function setAuthenticated($authenticated)
|
||||||
{
|
{
|
||||||
if ($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);
|
parent::setAuthenticated(false);
|
||||||
|
Reference in New Issue
Block a user