18
18
use Symfony \Component \HttpKernel \Kernel as BaseKernel ;
19
19
use Symfony \Component \Routing \RouteCollectionBuilder ;
20
20
21
- /**
22
- * @author Fabien Potencier <[email protected] >
23
- */
24
- final class Kernel extends BaseKernel
21
+ class Kernel extends BaseKernel
25
22
{
26
23
use MicroKernelTrait;
27
24
@@ -55,7 +52,7 @@ public function getLogDir(): string
55
52
return dirname (__DIR__ ).'/var/log ' ;
56
53
}
57
54
58
- public function registerBundles (): iterable
55
+ public function registerBundles ()
59
56
{
60
57
$ contents = require dirname (__DIR__ ).'/config/bundles.php ' ;
61
58
foreach ($ contents as $ class => $ envs ) {
@@ -65,17 +62,18 @@ public function registerBundles(): iterable
65
62
}
66
63
}
67
64
68
- protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader ): void
65
+ protected function configureContainer (ContainerBuilder $ container , LoaderInterface $ loader )
69
66
{
70
67
$ confDir = dirname (__DIR__ ).'/config ' ;
71
68
$ loader ->load ($ confDir .'/packages/* ' .self ::CONFIG_EXTS , 'glob ' );
72
69
if (is_dir ($ confDir .'/packages/ ' .$ this ->environment )) {
73
70
$ loader ->load ($ confDir .'/packages/ ' .$ this ->environment .'/**/* ' .self ::CONFIG_EXTS , 'glob ' );
74
71
}
75
72
$ loader ->load ($ confDir .'/services ' .self ::CONFIG_EXTS , 'glob ' );
73
+ $ loader ->load ($ confDir .'/services_ ' .$ this ->environment .self ::CONFIG_EXTS , 'glob ' );
76
74
}
77
75
78
- protected function configureRoutes (RouteCollectionBuilder $ routes ): void
76
+ protected function configureRoutes (RouteCollectionBuilder $ routes )
79
77
{
80
78
$ confDir = dirname (__DIR__ ).'/config ' ;
81
79
if (is_dir ($ confDir .'/routes/ ' )) {
0 commit comments