File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
symfony/framework-bundle/5.3/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ protected function configureContainer(ContainerConfigurator $container): void
19
19
if (is_file (\dirname (__DIR__ ).'/config/services.yaml ' )) {
20
20
$ container ->import ('../config/services.yaml ' );
21
21
$ container ->import ('../config/{services}_ ' .$ this ->environment .'.yaml ' );
22
- } elseif ( is_file ( $ path = \dirname ( __DIR__ ). ' /config/services.php ' )) {
23
- ( require $ path )( $ container ->withPath ( $ path ), $ this );
22
+ } else {
23
+ $ container ->import ( ' ../config/{services}.php ' );
24
24
}
25
25
}
26
26
@@ -31,8 +31,8 @@ protected function configureRoutes(RoutingConfigurator $routes): void
31
31
32
32
if (is_file (\dirname (__DIR__ ).'/config/routes.yaml ' )) {
33
33
$ routes ->import ('../config/routes.yaml ' );
34
- } elseif ( is_file ( $ path = \dirname ( __DIR__ ). ' /config/routes.php ' )) {
35
- ( require $ path )( $ routes ->withPath ( $ path ), $ this );
34
+ } else {
35
+ $ routes ->import ( ' ../config/{routes}.php ' );
36
36
}
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments