Cake\Console\Shell::initialize PHP Method

initialize() public method

Initializes the Shell acts as constructor for subclasses allows configuration of tasks prior to shell execution
public initialize ( ) : void
return void
    public function initialize()
    {
        $this->loadTasks();
    }

Usage Example

Beispiel #1
4
 /**
  * Initialization. Used to disconnect default loggers from consoleIO output
  * and instantiating Cakebox objects.
  *
  * @return void
  */
 public function initialize()
 {
     $this->_io->setLoggers(false);
     $this->Info = new CakeboxInfo();
     $this->Execute = new CakeboxExecute();
     parent::initialize();
 }
All Usage Examples Of Cake\Console\Shell::initialize