You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
717 B

5 years ago
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * Yii console bootstrap file.
  5. */
  6. defined('YII_DEBUG') or define('YII_DEBUG', true);
  7. defined('YII_ENV') or define('YII_ENV', 'dev');
  8. require __DIR__ . '/vendor/autoload.php';
  9. require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
  10. require __DIR__ . '/common/config/bootstrap.php';
  11. require __DIR__ . '/console/config/bootstrap.php';
  12. $config = yii\helpers\ArrayHelper::merge(
  13. require __DIR__ . '/common/config/main.php',
  14. require __DIR__ . '/common/config/main-local.php',
  15. require __DIR__ . '/console/config/main.php',
  16. require __DIR__ . '/console/config/main-local.php'
  17. );
  18. $application = new yii\console\Application($config);
  19. $exitCode = $application->run();
  20. exit($exitCode);