We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ec47ba + 875b7b8 commit f7e092cCopy full SHA for f7e092c
src/ServiceMap.php
@@ -19,9 +19,9 @@ public function __construct(string $configPath)
19
throw new \InvalidArgumentException(sprintf('Provided config path %s must exist', $configPath));
20
}
21
22
- \define('YII_ENV_DEV', false);
23
- \define('YII_ENV_PROD', false);
24
- \define('YII_ENV_TEST', true);
+ \defined('YII_ENV_DEV') or \define('YII_ENV_DEV', false);
+ \defined('YII_ENV_PROD') or \define('YII_ENV_PROD', false);
+ \defined('YII_ENV_TEST') or \define('YII_ENV_TEST', true);
25
26
$config = require $configPath;
27
foreach ($config['container']['singletons'] as $id => $service) {
0 commit comments