io() публичный метод

Get/Set the io object for this shell.
public io ( ConsoleIo $io = null ) : ConsoleIo
$io ConsoleIo The ConsoleIo object to use.
Результат ConsoleIo The current ConsoleIo object.
Пример #1
1
 /**
  * Create the task instance.
  *
  * Part of the template method for Cake\Core\ObjectRegistry::load()
  *
  * @param string $class The classname to create.
  * @param string $alias The alias of the task.
  * @param array $settings An array of settings to use for the task.
  * @return \Cake\Console\Shell The constructed task class.
  */
 protected function _create($class, $alias, $settings)
 {
     return new $class($this->_Shell->io());
 }