Example #1
0
 protected function prepareConf()
 {
     $default = Conf::getDefault();
     $cli = Conf::getFromCLI();
     $this->_options = new Dot(ArrayHelper::merge($default['options'], $this->_options ?? [], $cli['options'] ?? []));
     if ($this->_options['entry_script'] === Conf::ENTRY_SCRIPT_CURRENT) {
         $this->_options['entry_script'] = realpath($_SERVER['argv'][0]);
     }
     $this->_entities = ArrayHelper::merge($default['entities'], $this->_entities ?? [], $cli['entities'] ?? []);
 }