public function onAfterCache(Kernel $kernel, ConfigInterface $config) { self::$onAfterCache = true; if ($this->_targetComponent) { $config->set('components.' . $this->_targetComponent . '.on_after_cache.source_component', $this->_sourceComponent); } }
/** * Loads configuration files from the installed components. * * @return void */ protected function loadComponentsConfigFiles() { // First we load the component's config files $installedComponents = $this->getInstalledComponents(); foreach ($installedComponents as $componentName => $componentPath) { $file = $componentPath . '/frenzy/config.yml'; if (!is_file($file)) { $this->_config->set('components.' . $componentName, []); continue; } $this->_config->load(['file' => $file, 'loadInKey' => 'components.' . $componentName, 'processImports' => true]); } }