public function registerContainerConfiguration() { $loader = new ContainerLoader($this->getBundleDirs()); $configuration = $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml'); if (!$this->isDebug()) { $configuration->setParameter('exception_handler.controller', 'LichessBundle:Main:notFound'); } else { $configuration->setParameter('profiler.storage.class', 'Bundle\\LichessBundle\\Profiler\\ProfilerStorage'); } return $configuration; }
protected function loadFromFile(ContainerBuilder $container, $file) { $loadYaml = new YamlFileLoader($container, __DIR__ . '/Fixtures/config/yml'); $loadYaml->load($file . '.yml'); }
public function registerContainerConfiguration() { $loader = new ContainerLoader($this->getBundleDirs()); return $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml'); }