2016-09-16 01:28:28 +03:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2018-04-17 23:47:25 +03:00
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
2016-09-16 01:28:28 +03:00
|
|
|
|
2019-02-26 02:26:02 +03:00
|
|
|
defined('YII_DEBUG') || define('YII_DEBUG', (bool)getenv('YII_DEBUG'));
|
|
|
|
defined('YII_ENV') || define('YII_ENV', getenv('YII_ENV'));
|
2016-09-16 01:28:28 +03:00
|
|
|
|
2018-04-17 23:47:25 +03:00
|
|
|
require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
|
|
|
|
require __DIR__ . '/common/config/bootstrap.php';
|
|
|
|
require __DIR__ . '/console/config/bootstrap.php';
|
2016-09-16 01:28:28 +03:00
|
|
|
|
2016-09-19 01:01:19 +03:00
|
|
|
$config = \common\config\ConfigLoader::load('console');
|
2016-09-16 01:28:28 +03:00
|
|
|
|
|
|
|
$application = new yii\console\Application($config);
|
|
|
|
$exitCode = $application->run();
|
|
|
|
exit($exitCode);
|