Symfony\Component\Security\Core\Authentication\Token\AbstractToken::setAuthenticated PHP Method

setAuthenticated() public method

public setAuthenticated ( $authenticated )
    public function setAuthenticated($authenticated)
    {
        $this->authenticated = (bool) $authenticated;
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function setAuthenticated($isAuthenticated)
 {
     if ($isAuthenticated) {
         throw new \LogicException('Cannot set this token to trusted after instantiation.');
     }
     parent::setAuthenticated(false);
 }
All Usage Examples Of Symfony\Component\Security\Core\Authentication\Token\AbstractToken::setAuthenticated