accounts/yii

19 lines
684 B
Plaintext
Raw Normal View History

#!/usr/bin/env php
<?php
require(__DIR__ . '/vendor/autoload.php');
defined('YII_DEBUG') or define('YII_DEBUG', (boolean)getenv('YII_DEBUG'));
defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV'));
defined('YII_APPLICATION_TYPE') or define('YII_APPLICATION_TYPE', 'cli');
defined('YII_APPLICATION_MODULE') or define('YII_APPLICATION_MODULE', 'console');
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/common/config/bootstrap.php');
require(__DIR__ . '/console/config/bootstrap.php');
$config = require __DIR__ . '/common/config/config-loader.php';
$application = new yii\console\Application($config);
$exitCode = $application->run();
exit($exitCode);