Newscoop\NewscoopBundle\Security\Http\Authentication\InteractiveDoctrineAuthService::authenticate PHP Метод

authenticate() публичный Метод

Perform authentication attempt
public authenticate ( ) : Zend_Auth_Result
Результат Zend_Auth_Result
    public function authenticate()
    {
        if (empty($this->user)) {
            return new \Zend_Auth_Result(\Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND, NULL);
        }
        if (!$this->user->isActive()) {
            return new \Zend_Auth_Result(\Zend_Auth_Result::FAILURE_UNCATEGORIZED, NULL);
        }
        return new \Zend_Auth_Result(\Zend_Auth_Result::SUCCESS, $this->user->getId());
    }
InteractiveDoctrineAuthService