yii 848 B

123456789101112131415161718192021222324252627282930
  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 . '/config/console.php'),
  13. require(__DIR__ . '/../config/config.php'),
  14. [
  15. 'controllerMap' => [
  16. 'fixture' => [
  17. 'class' => 'yii\faker\FixtureController',
  18. 'fixtureDataPath' => '@tests/codeception/fixtures',
  19. 'templatePath' => '@tests/codeception/templates',
  20. 'namespace' => 'tests\codeception\fixtures',
  21. ],
  22. ],
  23. ]
  24. );
  25. $application = new yii\console\Application($config);
  26. $exitCode = $application->run();
  27. exit($exitCode);