public function build()
 {
     if ($this->built === true) {
         return;
     }
     $this->built = true;
     foreach ($this->configSection->get('handler-list', []) as $handler) {
         $this->registerHandler($this->createHandler($handler));
     }
 }
 protected function load()
 {
     if ($this->loaded === true) {
         return;
     }
     $this->loaded = true;
     $routerList = $this->configSection->getSection('router-list')->toArray();
     foreach ($routerList as $router) {
         $this->addRouter($this->createRouter($router));
     }
 }
 public function query($query, ...$parameterList)
 {
     $this->compile();
     return parent::query($query, ...$parameterList);
 }
Exemple #4
0
 /**
  * get current version codename
  *
  * @return string
  */
 public function getCodeName()
 {
     return $this->configSection->get('code-name');
 }