@@ -76,7 +76,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
7676
7777 $ container ->setAlias ($ kernelClass , 'kernel ' )->setPublic (true );
7878
79- $ configsToImport = $ _SERVER ['SYLIUS_TEST_APP_CONFIGS_TO_IMPORT ' ] ?? null ;
79+ $ configsToImport = $ _SERVER ['SYLIUS_TEST_APP_CONFIGS_TO_IMPORT ' ] ?? $ _SERVER [ ' CONFIGS_TO_IMPORT ' ] ?? null ;
8080 if (null !== $ configsToImport ) {
8181 foreach (explode ('; ' , $ configsToImport ) as $ filePath ) {
8282 $ kernelLoader ->import ($ filePath );
@@ -121,7 +121,7 @@ public function loadRoutes(LoaderInterface $loader): RouteCollection
121121 $ routes = new RoutingConfigurator ($ collection , $ kernelLoader , $ file , $ file , $ this ->getEnvironment ());
122122 $ configureRoutes ->getClosure ($ this )($ routes );
123123
124- $ routesToImport = $ _SERVER ['SYLIUS_TEST_APP_ROUTES_TO_IMPORT ' ] ?? null ;
124+ $ routesToImport = $ _SERVER ['SYLIUS_TEST_APP_ROUTES_TO_IMPORT ' ] ?? $ _SERVER [ ' ROUTES_TO_IMPORT ' ] ?? null ;
125125 if (null !== $ routesToImport ) {
126126 foreach (explode ('; ' , $ routesToImport ) as $ filePath ) {
127127 $ routes ->import ($ filePath );
@@ -148,7 +148,7 @@ private function loadMainBundles(string $path): array
148148
149149 private function loadAdditionalBundlesFromEnv (array &$ contents ): bool
150150 {
151- $ bundlesPathEnv = $ _SERVER ['SYLIUS_TEST_APP_BUNDLES_PATH ' ] ?? null ;
151+ $ bundlesPathEnv = $ _SERVER ['SYLIUS_TEST_APP_BUNDLES_PATH ' ] ?? $ _SERVER [ ' TEST_APP_BUNDLES_PATH ' ] ?? null ;
152152 if (null === $ bundlesPathEnv ) {
153153 return false ;
154154 }
@@ -175,7 +175,7 @@ private function loadAdditionalBundlesFromEnv(array &$contents): bool
175175
176176 private function loadBundlesToEnable (array &$ contents ): void
177177 {
178- $ bundlesToEnable = $ _SERVER ['SYLIUS_TEST_APP_BUNDLES_TO_ENABLE ' ] ?? null ;
178+ $ bundlesToEnable = $ _SERVER ['SYLIUS_TEST_APP_BUNDLES_TO_ENABLE ' ] ?? $ _SERVER [ ' BUNDLES_TO_ENABLE ' ] ?? null ;
179179 if (null === $ bundlesToEnable ) {
180180 return ;
181181 }
@@ -189,8 +189,8 @@ private function loadBundlesToEnable(array &$contents): void
189189
190190 private function resolveBundlesPath (): string
191191 {
192- if ( isset ( $ _SERVER ['SYLIUS_TEST_APP_BUNDLES_REPLACE_PATH ' ])) {
193- $ relativePath = $ _SERVER [ ' SYLIUS_TEST_APP_BUNDLES_REPLACE_PATH ' ];
192+ $ relativePath = $ _SERVER ['SYLIUS_TEST_APP_BUNDLES_REPLACE_PATH ' ] ?? null ;
193+ if ( null !== $ relativePath) {
194194 $ absolutePath = \dirname ($ this ->getProjectDir (), 3 ) . '/ ' . ltrim ($ relativePath , '/ ' );
195195
196196 if (is_file ($ absolutePath )) {
0 commit comments