public function loadUserByLogin($login, array $prioritizedLanguages = [])
    {
        if (!is_string($login) || empty($login)) {
            throw new InvalidArgumentValue('login', $login);
        }

        $spiUser = $this->userHandler->loadByLogin($login);

        return $this->buildDomainUserObject($spiUser, null, $prioritizedLanguages);
    }
public function loadUserByLogin($login, array $prioritizedLanguages = [])
    {
        if (!is_string($login) || empty($login)) {
            throw new InvalidArgumentValue('login', $login);
        }

        $spiUser = $this->userHandler->loadByLogin($login);

        return $this->buildDomainUserObject($spiUser, null, $prioritizedLanguages);
    }
public function loadUserByLogin ( $ login , array $ prioritizedLanguages = [ ] ) { if ( ! is_string ( $ login ) || empty ( $ login ) ) { throw new InvalidArgumentValue ( 'login' , $ login ) ; } $ spiUser = $ this -> userHandler -> loadByLogin ( $ login ) ; return $ this -> buildDomainUserObject ( $ spiUser , null , $ prioritizedLanguages ) ; }
Loads a user for the given login.

{@inheritdoc}

@param string $login
@param string[] $prioritizedLanguages Used as prioritized language code on translated properties of returned object.

@return \eZ\Publish\API\Repository\Values\User\User

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if a user with the given credentials was not found
Loads a user for the given login .