Пример #1
0
 /**
  * Sets the callable used to create {@link IO} instances.
  *
  * The callable receives four arguments:
  *
  *  * {@link RawArgs}: The raw console arguments.
  *  * {@link Input}: The input.
  *  * {@link Output}: The output.
  *  * {@link Output}: The error output.
  *
  * The input and output instances may be `null` if none were passed to
  * {@link Application::run()}.
  *
  * @param callable $ioFactory The {@link IO} factory callable.
  *
  * @return static The current instance.
  */
 public function setIOFactory($ioFactory)
 {
     Assert::nullOrIsCallable($ioFactory, 'The IO factory must be a callable or null. Got: %s');
     $this->ioFactory = $ioFactory;
     return $this;
 }