index.php 498 B

1234567891011121314151617
  1. <?php
  2. // comment out the following two lines when deployed to production
  3. defined('YII_DEBUG') or define('YII_DEBUG', true);
  4. defined('YII_ENV') or define('YII_ENV', 'dev');
  5. require __DIR__ . '/../vendor/autoload.php';
  6. /*(new \Dotenv\Dotenv(__DIR__ . '/../'))->load();*/
  7. $dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../');
  8. $dotenv->load();
  9. require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
  10. $config = require __DIR__ . '/../config/web.php';
  11. (new yii\web\Application($config))->run();