Beispiel #1
0
<?php

require '/var/www/html/helpers/DockerEnv.php';
\DockerEnv::init();
$config = \DockerEnv::webConfig();
(new yii\web\Application($config))->run();
Beispiel #2
0
<?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]]]);
Beispiel #3
0
<?php

/**
 * This is the configuration for the Yii app during unit tests
 */
return \DockerEnv::webConfig(['/var/www/html/tests/codeception/config/config.php']);