protected function loadEzUser($login)
    {
        if (empty($login)) {
            return null;
        }

        /** @var \eZ\Publish\API\Repository\UserService $userService */
        $userService = $this->getContainer()->get('ezpublish.api.service.user');

        try {
            return $userService->loadUserByLogin($login);
        } catch (NotFoundException $e) {
            return null;
        }
    }
protected function loadEzUser($login)
    {
        if (empty($login)) {
            return null;
        }

        /** @var \eZ\Publish\API\Repository\UserService $userService */
        $userService = $this->getContainer()->get('ezpublish.api.service.user');

        try {
            return $userService->loadUserByLogin($login);
        } catch (NotFoundException $e) {
            return null;
        }
    }
protected function loadEzUser ( $ login ) { if ( empty ( $ login ) ) { return null ; } /** @var \eZ\Publish\API\Repository\UserService $userService */ $ userService = $ this -> getContainer ( ) -> get ( 'ezpublish.api.service.user' ) ; try { return $ userService -> loadUserByLogin ( $ login ) ; } catch ( NotFoundException $ e ) { return null ; } }
Loads the eZ Platform user from the repo.

@param string $login

@return \eZ\Publish\API\Repository\Values\User\User
Loads the eZ Platform user from the repo .