mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Огромный рефакторинг в пользу отказа от механизма environment и использования .env файла
Найдено и удалено немного мусора
This commit is contained in:
2
api/web/.gitignore
vendored
2
api/web/.gitignore
vendored
@@ -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
16
api/web/index.php
Normal 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();
|
Reference in New Issue
Block a user