File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
symfony/framework-bundle/5.1/src Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ protected function configureContainer(ContainerConfigurator $container): void
21
21
$ container ->import ('../config/{services}_ ' .$ this ->environment .'.yaml ' );
22
22
} else {
23
23
$ path = \dirname (__DIR__ ).'/config/services.php ' ;
24
- (require $ path )($ container ->withPath ($ path ), $ this );
24
+
25
+ if (is_file ($ path )) {
26
+ (require $ path )($ container ->withPath ($ path ), $ this );
27
+ }
25
28
}
26
29
}
27
30
@@ -34,7 +37,10 @@ protected function configureRoutes(RoutingConfigurator $routes): void
34
37
$ routes ->import ('../config/{routes}.yaml ' );
35
38
} else {
36
39
$ path = \dirname (__DIR__ ).'/config/routes.php ' ;
37
- (require $ path )($ routes ->withPath ($ path ), $ this );
40
+
41
+ if (is_file ($ path )) {
42
+ (require $ path )($ routes ->withPath ($ path ), $ this );
43
+ }
38
44
}
39
45
}
40
46
}
You can’t perform that action at this time.
0 commit comments