14 lines
581 B
PHP
14 lines
581 B
PHP
<?php
|
|
|
|
// comment out the following two lines when deployed to production
|
|
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
|
defined('YII_ENV') or define('YII_ENV', 'prod');
|
|
defined('ROOT_DIR') or define('ROOT_DIR', __DIR__);
|
|
|
|
require(__DIR__ . '/../../common/vendor/autoload.php');
|
|
require(__DIR__ . '/../../vendor/autoload.php');
|
|
require(__DIR__ . '/../../common/vendor/yiisoft/yii2/Yii.php');
|
|
require(__DIR__ . '/../../common/vendor/swiftmailer/swiftmailer/lib/swift_required.php');
|
|
$config = require(__DIR__ . '/../config/web.php');
|
|
|
|
(new yii\web\Application($config))->run(); |