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

        $result =   $this->userProvider->findById($id);
        if ($result) {
            return $result;
        }

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

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

        $result =   $this->userProvider->findById($id);
        if ($result) {
            return $result;
        }

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

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