<?php require '/var/www/html/helpers/DockerEnv.php'; \DockerEnv::init(); $config = \DockerEnv::webConfig(); (new yii\web\Application($config))->run();
<?php /** * This is the configuration for the Yii app during functional tests */ $_SERVER['SCRIPT_FILENAME'] = YII_TEST_ENTRY_FILE; $_SERVER['SCRIPT_NAME'] = YII_TEST_ENTRY_URL; return \DockerEnv::webConfig(['/var/www/html/tests/codeception/config/config.php'], ['components' => ['request' => ['enableCsrfValidation' => false, 'cookieValidationKey' => 'TESTING---TESTING'], 'urlManager' => ['showScriptName' => true]]]);
<?php /** * This is the configuration for the Yii app during unit tests */ return \DockerEnv::webConfig(['/var/www/html/tests/codeception/config/config.php']);