1
0

yii_test 809 B

123456789101112131415161718192021222324252627
  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. defined('YII_DEBUG') or define('YII_DEBUG', true);
  11. defined('YII_ENV') or define('YII_ENV', 'test');
  12. require __DIR__ . '/vendor/autoload.php';
  13. require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
  14. require __DIR__ . '/common/config/bootstrap.php';
  15. require __DIR__ . '/console/config/bootstrap.php';
  16. $config = yii\helpers\ArrayHelper::merge(
  17. require __DIR__ . '/common/config/test-local.php',
  18. require __DIR__ . '/console/config/main.php',
  19. require __DIR__ . '/console/config/main-local.php'
  20. );
  21. $application = new yii\console\Application($config);
  22. $exitCode = $application->run();
  23. exit($exitCode);