src/Reflex/Lockdown/Lockdown.php
public function findUserByLogin($login)
    {
        if ($login instanceof UserInterface) {
            return $login;
        }

        $result =   $this->userProvider->findByLogin($login);
        if ($result) {
            return $result;
        }

        $exceptionMessage   =   "A user with the login '%(login)s' cannot be found.";

        throw new UserNotFound(isprintf($exceptionMessage, compact('login')));
    }
public function findUserByLogin($login)
    {
        if ($login instanceof UserInterface) {
            return $login;
        }

        $result =   $this->userProvider->findByLogin($login);
        if ($result) {
            return $result;
        }

        $exceptionMessage   =   "A user with the login '%(login)s' cannot be found.";

        throw new UserNotFound(isprintf($exceptionMessage, compact('login')));
    }
public function findUserByLogin ( $ login ) { if ( $ login instanceof UserInterface ) { return $ login ; } $ result = $ this -> userProvider -> findByLogin ( $ login ) ; if ( $ result ) { return $ result ; } $ exceptionMessage = "A user with the login '%(login)s' cannot be found." ; throw new UserNotFound ( isprintf ( $ exceptionMessage , compact ( 'login' ) ) ) ; }
Find a user by their login
@param  string|Reflex\Lockdown\Users\UserInterface $id
@return Reflex\Lockdown\Users\UserInterface
@throws UserNotFoundException If User not found
Find a user by their login