Neos\Neos\Command\UserCommandController::getUserOrFail PHP Method

getUserOrFail() protected method

Retrieves the given user or fails by exiting with code 1 and a message
protected getUserOrFail ( string $username, string $authenticationProviderName ) : User
$username string Username of the user to find
$authenticationProviderName string Name of the authentication provider to use
return Neos\Neos\Domain\Model\User The user
    protected function getUserOrFail($username, $authenticationProviderName)
    {
        $user = $this->userService->getUser($username, $authenticationProviderName);
        if (!$user instanceof User) {
            $this->outputLine('The user "%s" does not exist.', array($username));
            $this->quit(1);
        }
        return $user;
    }