yii 848 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/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/
 */

11
require_once __DIR__ . '/_bootstrap.php';
12 13

$config = yii\helpers\ArrayHelper::merge(
14
    require(YII_APP_BASE_PATH . '/config/console.php'),
15
    require(__DIR__ . '/../config/config.php'),
16
    [
17 18 19
        'controllerMap' => [
            'fixture' => [
                'class' => 'yii\faker\FixtureController',
20
                'fixtureDataPath' => '@tests/codeception/fixtures',
21 22
                'templatePath' => '@tests/codeception/templates',
                'namespace' => 'tests\codeception\fixtures',
23 24
            ],
        ],
25 26 27 28 29 30
    ]
);

$application = new yii\console\Application($config);
$exitCode = $application->run();
exit($exitCode);