yiiInit.php 362 B

1234567891011
  1. <?php /** Created by Anton on 31.01.2020. */
  2. defined('YII_DEBUG') or define('YII_DEBUG', true);
  3. defined('YII_ENV') or define('YII_ENV', 'prod');
  4. require dirname(__DIR__) . '/api/vendor/autoload.php';
  5. require dirname(__DIR__) . '/api/vendor/yiisoft/yii2/Yii.php';
  6. $config = require dirname(__DIR__) . '/api/config/web.php';
  7. (new yii\web\Application($config));