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.

_bootstrap.php 817B

8 年之前
1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Yii console bootstrap file.
  4. *
  5. * @link http://www.yiiframework.com/
  6. * @copyright Copyright (c) 2008 Yii Software LLC
  7. * @license http://www.yiiframework.com/license/
  8. */
  9. defined('YII_DEBUG') or define('YII_DEBUG', true);
  10. defined('YII_ENV') or define('YII_ENV', 'test');
  11. // fcgi doesn't have STDIN and STDOUT defined by default
  12. defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
  13. defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
  14. defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(__DIR__))));
  15. require_once(YII_APP_BASE_PATH . '/vendor/autoload.php');
  16. require_once(YII_APP_BASE_PATH . '/vendor/yiisoft/yii2/Yii.php');
  17. require_once(YII_APP_BASE_PATH . '/common/config/bootstrap.php');
  18. Yii::setAlias('@tests', dirname(dirname(__DIR__)));