| 123456789101112131415161718192021222324252627282930 |
- #!/usr/bin/env php
- <?php
- /**
- * Yii console bootstrap file.
- *
- * @link http://www.yiiframework.com/
- * @copyright Copyright (c) 2008 Yii Software LLC
- * @license http://www.yiiframework.com/license/
- */
- require_once __DIR__ . '/_bootstrap.php';
- $config = yii\helpers\ArrayHelper::merge(
- require(YII_APP_BASE_PATH . '/config/console.php'),
- require(__DIR__ . '/../config/config.php'),
- [
- 'controllerMap' => [
- 'fixture' => [
- 'class' => 'yii\faker\FixtureController',
- 'fixtureDataPath' => '@tests/codeception/fixtures',
- 'templatePath' => '@tests/codeception/templates',
- 'namespace' => 'tests\codeception\fixtures',
- ],
- ],
- ]
- );
- $application = new yii\console\Application($config);
- $exitCode = $application->run();
- exit($exitCode);
|