init() 공개 메소드

public init ( )
 /**
  * Initialize the application.
  */
 public function init()
 {
     parent::init();
     if ($this->enableCoreCommands) {
         foreach ($this->coreCommands() as $id => $command) {
             if (!isset($this->controllerMap[$id])) {
                 $this->controllerMap[$id] = $command;
             }
         }
     }
     // ensure we have the 'help' command so that we can list the available commands
     if (!isset($this->controllerMap['help'])) {
         $this->controllerMap['help'] = 'yii\\console\\controllers\\HelpController';
     }
 }