2016-09-16 03:58:28 +05:30
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2018-04-18 02:17:25 +05:30
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
2016-09-16 03:58:28 +05:30
|
|
|
|
|
|
|
defined('YII_DEBUG') or define('YII_DEBUG', (boolean)getenv('YII_DEBUG'));
|
|
|
|
defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV'));
|
|
|
|
|
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
|
|
|
|
2016-09-19 03:31:19 +05:30
|
|
|
$config = \common\config\ConfigLoader::load('console');
|
2016-09-16 03:58:28 +05:30
|
|
|
|
|
|
|
$application = new yii\console\Application($config);
|
|
|
|
$exitCode = $application->run();
|
|
|
|
exit($exitCode);
|