2016-09-16 03:58:28 +05:30
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2024-12-02 15:40:55 +05:30
|
|
|
|
|
|
|
use common\config\ConfigLoader;
|
|
|
|
|
2018-04-18 02:17:25 +05:30
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
2016-09-16 03:58:28 +05:30
|
|
|
|
2019-02-26 04:56:02 +05:30
|
|
|
defined('YII_DEBUG') || define('YII_DEBUG', (bool)getenv('YII_DEBUG'));
|
|
|
|
defined('YII_ENV') || define('YII_ENV', getenv('YII_ENV'));
|
2016-09-16 03:58:28 +05:30
|
|
|
|
2018-04-18 02:17:25 +05:30
|
|
|
require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
|
|
|
|
require __DIR__ . '/common/config/bootstrap.php';
|
|
|
|
require __DIR__ . '/console/config/bootstrap.php';
|
2016-09-16 03:58:28 +05:30
|
|
|
|
2024-12-02 15:40:55 +05:30
|
|
|
$config = ConfigLoader::load('console');
|
2016-09-16 03:58:28 +05:30
|
|
|
|
|
|
|
$application = new yii\console\Application($config);
|
|
|
|
$exitCode = $application->run();
|
|
|
|
exit($exitCode);
|