@@ -13,9 +13,9 @@ class Kernel extends BaseKernel
1313{
1414 use MicroKernelTrait;
1515
16- const CONFIG_EXTS = '.{php,xml,yaml,yml} ' ;
16+ private const CONFIG_EXTS = '.{php,xml,yaml,yml} ' ;
1717
18- public function registerBundles ()
18+ public function registerBundles (): iterable
1919 {
2020 $ contents = require $ this ->getProjectDir ().'/config/bundles.php ' ;
2121 foreach ($ contents as $ class => $ envs ) {
@@ -25,7 +25,7 @@ public function registerBundles()
2525 }
2626 }
2727
28- protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader )
28+ protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader ): void
2929 {
3030 $ container ->addResource (new FileResource ($ this ->getProjectDir ().'/config/bundles.php ' ));
3131 $ container ->setParameter ('container.dumper.inline_class_loader ' , true );
@@ -37,12 +37,12 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
3737 $ loader ->load ($ confDir .'/{services}_ ' .$ this ->environment .self ::CONFIG_EXTS , 'glob ' );
3838 }
3939
40- protected function configureRoutes (RouteCollectionBuilder $ routes )
40+ protected function configureRoutes (RouteCollectionBuilder $ routes ): void
4141 {
4242 $ confDir = $ this ->getProjectDir ().'/config ' ;
4343
44- $ routes ->import ($ confDir .'/{routes}/* ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
4544 $ routes ->import ($ confDir .'/{routes}/ ' .$ this ->environment .'/**/* ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
45+ $ routes ->import ($ confDir .'/{routes}/* ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
4646 $ routes ->import ($ confDir .'/{routes} ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
4747 }
4848}
0 commit comments