yiiInit_once.php 369 B

12345678
  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_once dirname(__DIR__) . '/api/vendor/autoload.php';
  5. require_once dirname(__DIR__) . '/api/vendor/yiisoft/yii2/Yii.php';
  6. $config = include dirname(__DIR__) . '/api/config/web.php';
  7. (new yii\web\Application($config));