Pimcore\Model\User\AbstractUser::getByName PHP Method

getByName() public static method

public static getByName ( string $name ) : self
$name string
return self
    public static function getByName($name)
    {
        try {
            $user = new static();
            $user->getDao()->getByName($name);
            return $user;
        } catch (\Exception $e) {
            return false;
        }
    }