Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public function loadFile($file)
 {
   return parent::loadFile($file);
 }
Ejemplo n.º 3
0
 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');
 }
 public function getFilesAsArray(array $files)
 {
     return parent::getFilesAsArray($files);
 }