Огромный рефакторинг в пользу отказа от механизма environment и использования .env файла

Найдено и удалено немного мусора
This commit is contained in:
ErickSkrauch
2016-09-16 01:28:28 +03:00
parent e76a8324fb
commit 54485b2271
56 changed files with 209 additions and 763 deletions

2
api/web/.gitignore vendored
View File

@@ -1,2 +0,0 @@
/index.php
/index-test.php

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

16
api/web/index.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
require __DIR__ . '/../../vendor/autoload.php';
defined('YII_DEBUG') or define('YII_DEBUG', (boolean)getenv('YII_DEBUG'));
defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV'));
defined('YII_APPLICATION_TYPE') or define('YII_APPLICATION_TYPE', 'web');
defined('YII_APPLICATION_MODULE') or define('YII_APPLICATION_MODULE', 'api');
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../config/bootstrap.php';
$config = require __DIR__ . './../../common/config/config-loader.php';
$application = new yii\web\Application($config);
$application->run();