protected function getUser($userKey)
    {
        $userKey = $this->referenceResolver->resolveReference($userKey);
        return $this->userMatcher->matchOneByKey($userKey);
    }
protected function getUser($userKey)
    {
        $userKey = $this->referenceResolver->resolveReference($userKey);
        return $this->userMatcher->matchOneByKey($userKey);
    }
protected function getUser ( $ userKey ) { $ userKey = $ this -> referenceResolver -> resolveReference ( $ userKey ) ; return $ this -> userMatcher -> matchOneByKey ( $ userKey ) ; }
Load user using either login, email, id - resolving eventual references
@param int|string $userKey
@return \eZ\Publish\API\Repository\Values\User\User
Load user using either login email id - resolving eventual references