index.php 611 B

12345678910111213141516
  1. <?php
  2. defined('YII_DEBUG') or define('YII_DEBUG', true);
  3. defined('YII_ENV') or define('YII_ENV', 'dev');
  4. require __DIR__ . '/../../vendor/autoload.php';
  5. require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
  6. require __DIR__ . '/../../common/config/bootstrap.php';
  7. require __DIR__ . '/../config/bootstrap.php';
  8. $config = yii\helpers\ArrayHelper::merge(
  9. require __DIR__ . '/../../common/config/main.php',
  10. require __DIR__ . '/../../common/config/main-local.php',
  11. require __DIR__ . '/../config/main.php',
  12. require __DIR__ . '/../config/main-local.php'
  13. );
  14. (new yii\web\Application($config))->run();