protected function loadApplication(LoginAttempt $loginAttempt)
    {
        // retrieve Application
        if (!$application = $this->applicationLoader->retrieveByApiKeyAndSecret(
            $loginAttempt->getData('client_api_key'),
            $loginAttempt->getData('client_secret')
        )) {
            throw new InvalidGrantException(
                $loginAttempt,
                'Any application found for given api_key / secret.'
            );
        }

        return $application;
    }
protected function loadApplication(LoginAttempt $loginAttempt)
    {
        // retrieve Application
        if (!$application = $this->applicationLoader->retrieveByApiKeyAndSecret(
            $loginAttempt->getData('client_api_key'),
            $loginAttempt->getData('client_secret')
        )) {
            throw new InvalidGrantException(
                $loginAttempt,
                'Any application found for given api_key / secret.'
            );
        }

        return $application;
    }
protected function loadApplication ( LoginAttempt $ loginAttempt ) { // retrieve Application if ( ! $ application = $ this -> applicationLoader -> retrieveByApiKeyAndSecret ( $ loginAttempt -> getData ( 'client_api_key' ) , $ loginAttempt -> getData ( 'client_secret' ) ) ) { throw new InvalidGrantException ( $ loginAttempt , 'Any application found for given api_key / secret.' ) ; } return $ application ; }
Loads application for given login attempt.

@param LoginAttempt $loginAttempt

@return ApplicationInterface

@throws InvalidGrantException
Loads application for given login attempt .