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.

8 years ago
1234567891011121314151617181920212223
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * Yii console bootstrap file.
  5. *
  6. * @link http://www.yiiframework.com/
  7. * @copyright Copyright (c) 2008 Yii Software LLC
  8. * @license http://www.yiiframework.com/license/
  9. */
  10. require_once __DIR__ . '/_bootstrap.php';
  11. $config = yii\helpers\ArrayHelper::merge(
  12. require(YII_APP_BASE_PATH . '/common/config/main.php'),
  13. require(YII_APP_BASE_PATH . '/common/config/main-local.php'),
  14. require(YII_APP_BASE_PATH . '/console/config/main.php'),
  15. require(YII_APP_BASE_PATH . '/console/config/main-local.php'),
  16. require(dirname(__DIR__) . '/config/config.php')
  17. );
  18. $application = new yii\console\Application($config);
  19. $exitCode = $application->run();
  20. exit($exitCode);