/**
  * Wrapper method to ask for input with optional validation.
  *
  * @param string $question
  *      The question to ask.
  *
  * @param \commpress\Cli\InputInterface $input
  *      The input interface.
  * @param \commpress\Cli\OutputInterface $output
  *      The output interface.
  * @param closure|null $validator
  *      (Optional) The closure for the validation.
  *
  * @return string
  *      The answer.
  */
 public static function ask($question, InputInterface $input, OutputInterface $output, $validator = null)
 {
     $question = new Question($question . ' ');
     if ($validator != null) {
         $question->setValidator($validator);
     }
     $helper = self::$instance->getHelperSet()->get('question');
     return $helper->ask($input, $output, $question);
 }