Example #1
0
 public function createControllerByID($id)
 {
     /// skip start for init goal
     if ($this->_first) {
         $this->_first = false;
         static $skips = ['init' => 1, 'clone' => 1, '--version' => 1];
         if (!isset($skips[$id])) {
             $this->runRequest('start');
         }
     }
     if ($this->get('config')->hasGoal($id)) {
         return $this->get('config')->get($id);
     }
     $controller = parent::createControllerByID($id);
     $this->get('config')->set($id, $controller);
     return $controller;
 }