public function getAuthenticator(HTTPRequest $request)
    {
        // Get list of default authenticators
        $authenticators = $this->config()->get('authenticators');
        if (empty($authenticators)) {
            return null;
        }

        // Build authenticator from first class
        $this->prioritiseAuthenticators($authenticators);
        foreach ($authenticators as $authenticatorConfig) {
            $authenticator = $this->buildAuthenticator($authenticatorConfig['class']);
            if ($authenticator->isApplicable($request)) {
                return $authenticator;
            }
        }
        return null;
    }
public function getAuthenticator(HTTPRequest $request)
    {
        // Get list of default authenticators
        $authenticators = $this->config()->get('authenticators');
        if (empty($authenticators)) {
            return null;
        }

        // Build authenticator from first class
        $this->prioritiseAuthenticators($authenticators);
        foreach ($authenticators as $authenticatorConfig) {
            $authenticator = $this->buildAuthenticator($authenticatorConfig['class']);
            if ($authenticator->isApplicable($request)) {
                return $authenticator;
            }
        }
        return null;
    }
public function getAuthenticator ( HTTPRequest $ request ) { // Get list of default authenticators $ authenticators = $ this -> config ( ) -> get ( 'authenticators' ) ; if ( empty ( $ authenticators ) ) { return null ; } // Build authenticator from first class $ this -> prioritiseAuthenticators ( $ authenticators ) ; foreach ( $ authenticators as $ authenticatorConfig ) { $ authenticator = $ this -> buildAuthenticator ( $ authenticatorConfig [ 'class' ] ) ; if ( $ authenticator -> isApplicable ( $ request ) ) { return $ authenticator ; } } return null ; }
Returns the first configured authenticator by highest priority, or null if none are configured

@param HTTPRequest $request
@return null|AuthenticatorInterface
Returns the first configured authenticator by highest priority or null if none are configured