File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
symfony/framework-bundle/5.4/src Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 33namespace App ;
44
55use Symfony \Bundle \FrameworkBundle \Kernel \MicroKernelTrait ;
6- use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
76use Symfony \Component \HttpKernel \Kernel as BaseKernel ;
8- use Symfony \Component \Routing \Loader \Configurator \RoutingConfigurator ;
97
108class Kernel extends BaseKernel
119{
1210 use MicroKernelTrait;
13-
14- protected function configureContainer (ContainerConfigurator $ container ): void
15- {
16- $ projectDir = $ this ->getProjectDir ();
17-
18- $ container ->import ($ projectDir .'/config/{packages}/*.yaml ' );
19- $ container ->import ($ projectDir .'/config/{packages}/ ' .$ this ->environment .'/*.yaml ' );
20-
21- if (is_file ($ projectDir .'/config/services.yaml ' )) {
22- $ container ->import ($ projectDir .'/config/services.yaml ' );
23- $ container ->import ($ projectDir .'/config/{services}_ ' .$ this ->environment .'.yaml ' );
24- } else {
25- $ container ->import ($ projectDir .'/config/{services}.php ' );
26- }
27- }
28-
29- protected function configureRoutes (RoutingConfigurator $ routes ): void
30- {
31- $ projectDir = $ this ->getProjectDir ();
32-
33- $ routes ->import ($ projectDir .'/config/{routes}/ ' .$ this ->environment .'/*.yaml ' );
34- $ routes ->import ($ projectDir .'/config/{routes}/*.yaml ' );
35-
36- if (is_file ($ projectDir .'/config/routes.yaml ' )) {
37- $ routes ->import ($ projectDir .'/config/routes.yaml ' );
38- } else {
39- $ routes ->import ($ projectDir .'/config/{routes}.php ' );
40- }
41- }
4211}
You can’t perform that action at this time.
0 commit comments