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.

29 lines
728 B

8 months ago
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * Yii console bootstrap file.
  5. *
  6. * @link https://www.yiiframework.com/
  7. * @copyright Copyright (c) 2008 Yii Software LLC
  8. * @license https://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. $config = yii\helpers\ArrayHelper::merge(
  15. require __DIR__ . '/../../config/console.php',
  16. [
  17. 'components' => [
  18. 'db' => require __DIR__ . '/../../config/test_db.php'
  19. ]
  20. ]
  21. );
  22. $application = new yii\console\Application($config);
  23. $exitCode = $application->run();
  24. exit($exitCode);