protected function prepareConf() { $cliConf = []; if ($this->config) { if (!file_exists($this->config)) { throw new InvalidParamException(sprintf("Config file not found (%s)", $this->config)); } $cliConf = (include $this->config); } if ($this->trace !== null) { $cliConf['options']['show_trace'] = (bool) $this->trace; } if ($this->script !== null) { $cliConf['options']['entry_script'] = $this->script; } Conf::setFromCLI($cliConf); }