File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,25 @@ shown in these three formats.
70
70
71
71
// src/Kernel.php
72
72
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
73
+ use Symfony\Component\HttpKernel\Kernel as BaseKernel;
73
74
74
- private function configureContainer(ContainerConfigurator $container): void
75
+ class Kernel extends BaseKernel
75
76
{
76
- $configDir = $this->getConfigDir();
77
+ // ...
78
+
79
+ private function configureContainer(ContainerConfigurator $container): void
80
+ {
81
+ $configDir = $this->getConfigDir();
77
82
78
- $container->import($configDir.'/{packages}/*.{yaml,php}');
79
- $container->import($configDir.'/{packages}/'.$this->environment.'/*.{yaml,php}');
83
+ $container->import($configDir.'/{packages}/*.{yaml,php}');
84
+ $container->import($configDir.'/{packages}/'.$this->environment.'/*.{yaml,php}');
80
85
81
- if (is_file($configDir.'/services.yaml')) {
82
- $container->import($configDir.'/services.yaml');
83
- $container->import($configDir.'/{services}_'.$this->environment.'.yaml');
84
- } else {
85
- $container->import($configDir.'/{services}.php');
86
+ if (is_file($configDir.'/services.yaml')) {
87
+ $container->import($configDir.'/services.yaml');
88
+ $container->import($configDir.'/{services}_'.$this->environment.'.yaml');
89
+ } else {
90
+ $container->import($configDir.'/{services}.php');
91
+ }
86
92
}
87
93
}
88
94
You can’t perform that action at this time.
0 commit comments