Prado\Security\TDbUserManager::getUser PHP Method

getUser() public method

Returns a user instance given the user name.
public getUser ( $username = null ) : TUser
return TUser the user instance, null if the specified username is not in the user database.
    public function getUser($username = null)
    {
        if ($username === null) {
            $user = Prado::createComponent($this->_userClass, $this);
            $user->setIsGuest(true);
            return $user;
        } else {
            return $this->_userFactory->createUser($username);
        }
    }