1818use Symfony \Component \HttpKernel \Kernel as BaseKernel ;
1919use Symfony \Component \Routing \RouteCollectionBuilder ;
2020
21- /**
22- * @author Fabien Potencier <fabien@symfony.com>
23- */
24- final class Kernel extends BaseKernel
21+ class Kernel extends BaseKernel
2522{
2623 use MicroKernelTrait;
2724
@@ -55,7 +52,7 @@ public function getLogDir(): string
5552 return dirname (__DIR__ ).'/var/log ' ;
5653 }
5754
58- public function registerBundles (): iterable
55+ public function registerBundles ()
5956 {
6057 $ contents = require dirname (__DIR__ ).'/config/bundles.php ' ;
6158 foreach ($ contents as $ class => $ envs ) {
@@ -65,17 +62,18 @@ public function registerBundles(): iterable
6562 }
6663 }
6764
68- protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader ): void
65+ protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader )
6966 {
7067 $ confDir = dirname (__DIR__ ).'/config ' ;
7168 $ loader ->load ($ confDir .'/packages/* ' .self ::CONFIG_EXTS , 'glob ' );
7269 if (is_dir ($ confDir .'/packages/ ' .$ this ->environment )) {
7370 $ loader ->load ($ confDir .'/packages/ ' .$ this ->environment .'/**/* ' .self ::CONFIG_EXTS , 'glob ' );
7471 }
7572 $ loader ->load ($ confDir .'/services ' .self ::CONFIG_EXTS , 'glob ' );
73+ $ loader ->load ($ confDir .'/services_ ' .$ this ->environment .self ::CONFIG_EXTS , 'glob ' );
7674 }
7775
78- protected function configureRoutes (RouteCollectionBuilder $ routes ): void
76+ protected function configureRoutes (RouteCollectionBuilder $ routes )
7977 {
8078 $ confDir = dirname (__DIR__ ).'/config ' ;
8179 if (is_dir ($ confDir .'/routes/ ' )) {
0 commit comments