public function getAccountByAuthenticationProviderName($authenticationProviderName)
    {
        if ($this->initialized === false) {
            $this->initialize();
        }

        if (isset($this->activeTokens[$authenticationProviderName]) && $this->activeTokens[$authenticationProviderName]->isAuthenticated() === true) {
            return $this->activeTokens[$authenticationProviderName]->getAccount();
        }
        return null;
    }
public function getAccountByAuthenticationProviderName($authenticationProviderName)
    {
        if ($this->initialized === false) {
            $this->initialize();
        }

        if (isset($this->activeTokens[$authenticationProviderName]) && $this->activeTokens[$authenticationProviderName]->isAuthenticated() === true) {
            return $this->activeTokens[$authenticationProviderName]->getAccount();
        }
        return null;
    }
public function getAccountByAuthenticationProviderName ( $ authenticationProviderName ) { if ( $ this -> initialized === false ) { $ this -> initialize ( ) ; } if ( isset ( $ this -> activeTokens [ $ authenticationProviderName ] ) && $ this -> activeTokens [ $ authenticationProviderName ] -> isAuthenticated ( ) === true ) { return $ this -> activeTokens [ $ authenticationProviderName ] -> getAccount ( ) ; } return null ; }
Returns an authenticated account for the given provider or NULL if no
account was authenticated or no token was registered for the given
authentication provider name.

@param string $authenticationProviderName Authentication provider name of the account to find
@return Account The authenticated account
Returns an authenticated account for the given provider or NULL if no account was authenticated or no token was registered for the given authentication provider name .