コード例 #1
0
ファイル: index.php プロジェクト: maxwelldu/yii2-dockerized
<?php

require '/var/www/html/helpers/DockerEnv.php';
\DockerEnv::init();
$config = \DockerEnv::webConfig();
(new yii\web\Application($config))->run();
コード例 #2
0
ファイル: functional.php プロジェクト: koTblk/yii2-dockerized
<?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]]]);
コード例 #3
0
ファイル: unit.php プロジェクト: koTblk/yii2-dockerized
<?php

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