@@ -31,7 +31,7 @@ public function registerBundles(): iterable
31
31
{
32
32
$ contents = require dirname (__DIR__ ).'/etc/bundles.php ' ;
33
33
foreach ($ contents as $ class => $ envs ) {
34
- if (isset ($ envs ['all ' ]) || isset ($ envs [$ this ->getEnvironment () ])) {
34
+ if (isset ($ envs ['all ' ]) || isset ($ envs [$ this ->environment ])) {
35
35
yield new $ class ();
36
36
}
37
37
}
@@ -41,8 +41,8 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
41
41
{
42
42
$ confDir = dirname (__DIR__ ).'/etc ' ;
43
43
$ loader ->import ($ confDir .'/packages/* ' .self ::CONFIG_EXTS , 'glob ' );
44
- if (is_dir ($ confDir .'/packages/ ' .$ this ->getEnvironment () )) {
45
- $ loader ->import ($ confDir .'/packages/ ' .$ this ->getEnvironment () .'/**/* ' .self ::CONFIG_EXTS , 'glob ' );
44
+ if (is_dir ($ confDir .'/packages/ ' .$ this ->environment )) {
45
+ $ loader ->import ($ confDir .'/packages/ ' .$ this ->environment .'/**/* ' .self ::CONFIG_EXTS , 'glob ' );
46
46
}
47
47
$ loader ->import ($ confDir .'/container ' .self ::CONFIG_EXTS , 'glob ' );
48
48
}
@@ -53,8 +53,8 @@ protected function configureRoutes(RouteCollectionBuilder $routes): void
53
53
if (is_dir ($ confDir .'/routing/ ' )) {
54
54
$ routes ->import ($ confDir .'/routing/* ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
55
55
}
56
- if (is_dir ($ confDir .'/routing/ ' .$ this ->getEnvironment () )) {
57
- $ routes ->import ($ confDir .'/routing/ ' .$ this ->getEnvironment () .'/**/* ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
56
+ if (is_dir ($ confDir .'/routing/ ' .$ this ->environment )) {
57
+ $ routes ->import ($ confDir .'/routing/ ' .$ this ->environment .'/**/* ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
58
58
}
59
59
$ routes ->import ($ confDir .'/routing ' .self ::CONFIG_EXTS , '/ ' , 'glob ' );
60
60
}
0 commit comments