public function getUser($credentials, UserProviderInterface $userProvider)
    {
        if (isset($credentials[$this->username_attribute])) {
            return $userProvider->loadUserByUsername($credentials[$this->username_attribute]);
        } else {
            return null;
        }
    }
public function getUser($credentials, UserProviderInterface $userProvider)
    {
        if (isset($credentials[$this->username_attribute])) {
            return $userProvider->loadUserByUsername($credentials[$this->username_attribute]);
        } else {
            return null;
        }
    }
public function getUser ( $ credentials , UserProviderInterface $ userProvider ) { if ( isset ( $ credentials [ $ this -> username_attribute ] ) ) { return $ userProvider -> loadUserByUsername ( $ credentials [ $ this -> username_attribute ] ) ; } else { return null ; } }
Calls the UserProvider providing a valid User
@param array $credentials
@param UserProviderInterface $userProvider
@return bool
Calls the UserProvider providing a valid User