portal.mkgtu.ru/backend/yii

29 lines
848 B
Plaintext
Raw Normal View History

2024-03-28 09:51:45 +03:00
#!/usr/bin/env php
<?php
// fcgi doesn't have STDIN and STDOUT defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
// Composer
require(__DIR__ . '/../vendor/autoload.php');
// Environment
require(__DIR__ . '/../common/env.php');
// Yii
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
// Bootstrap application
require(__DIR__ . '/../common/config/bootstrap.php');
require(__DIR__ . '/config/bootstrap.php');
$config = \yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../common/config/base.php'),
require(__DIR__ . '/../common/config/console.php'),
require(__DIR__ . '/config/base.php'),
require(__DIR__ . '/config/console.php')
);
$app = (new yii\console\Application($config));
$exitCode = $app->run();
exit($exitCode);