| 1 | <?php  | 
            ||
| 7 | use Smartbox\CoreBundle\DependencyInjection\CacheDriversCompilerPass;  | 
            ||
| 8 | |||
| 9 | class AppKernel extends Kernel  | 
            ||
| 10 | { | 
            ||
| 11 | public function registerBundles()  | 
            ||
| 29 | |||
| 30 | public function registerContainerConfiguration(LoaderInterface $loader)  | 
            ||
| 31 |     { | 
            ||
| 32 | $config = 'config';  | 
            ||
| 33 |         if ($this->getEnvironment() !== 'test') { | 
            ||
| 34 | $config = 'config_'.$this->getEnvironment();  | 
            ||
| 35 | }  | 
            ||
| 36 | |||
| 37 | $loader->load($this->getRootDir().'/config/'.$config.'.yml');  | 
            ||
| 38 | }  | 
            ||
| 40 |