Пример #1
0
 /**
  * @param Config $config
  * @param array  $options
  */
 private function doBundleConfigExtend(Config $config, array $options)
 {
     $this->overrideConfigByFile($config, $options['bundle_id']);
     $configConfig = $this->application->getConfig()->getConfigConfig();
     if (null === $configConfig || array_key_exists('save_in_registry', $configConfig) && true === $configConfig['save_in_registry']) {
         $this->overrideConfigByRegistry($config, $options['bundle_id'], false, false)->overrideConfigByRegistry($config, $options['bundle_id'], false, true)->overrideConfigByRegistry($config, $options['bundle_id'], true, false)->overrideConfigByRegistry($config, $options['bundle_id'], true, true);
     }
 }
Пример #2
0
 public function __construct(ApplicationInterface $app, $id = null, $baseDir = null)
 {
     parent::__construct($app, $id, $baseDir);
     $this->app = $app;
     $this->settings = $this->app->getConfig()->getThemesConfig();
 }