if (empty($username)) { $username =
$questionHelper->
ask( $input,
$output,
new Question('Please enter the username'
) );
} if (empty($password)) { $passwordQuestion =
new Question('Please enter the password'
);
$passwordQuestion->
setHidden(true
);
$passwordQuestion->
setHiddenFallback(false
);
$password =
$questionHelper->
ask( $input,
$output,
$passwordQuestion );
} } if (empty($username) ||
empty($password)) { throw new Exception('Username and password are required'
);
}