您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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__)));