/** * @param Configurator * @return void */ protected function setupConfiguration(Configurator $configurator) { if ($this->options->getPrimaryConfig() !== NULL) { $configurator->addConfig($this->options->getPrimaryConfig()->getFile()); } if ($this->options->getLocalConfig() !== NULL && Helpers::detectDevelopmentEnvironment()) { $configurator->addConfig($this->options->getLocalConfig()->getFile()); } foreach ($this->options->getConfigs() as $config) { $configurator->addConfig($config->getFile()); } }
/** * @return void */ protected function initializeDefaults() { $this->appDirectory = $this->detectAppDirectory(); $this->logDirectory = $this->appDirectory . '/log'; $this->tempDirectory = $this->appDirectory . '/temp'; $this->primaryConfig = new Config($this->appDirectory . '/resources/config/config.neon'); $this->localConfig = new Config($this->appDirectory . '/resources/config/config.local.neon'); $this->isDevelopmentEnvironment = Helpers::detectDevelopmentEnvironment(); }