yii_acceptance 1008 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 15 16 17
    require(YII_APP_BASE_PATH . '/common/config/main.php'),
    require(YII_APP_BASE_PATH . '/common/config/main-local.php'),
    require(YII_APP_BASE_PATH . '/console/config/main.php'),
    require(YII_APP_BASE_PATH . '/console/config/main-local.php'),
18
    require(dirname(__DIR__) . '/config/acceptance.php'),
19 20 21 22
    [
        'controllerMap' => [
            'fixture' => [
                'class' => 'yii\faker\FixtureController',
23 24
                'fixtureDataPath' => dirname(__DIR__) . 'common/fixtures',
                'templatePath' => dirname(__DIR__) . 'common/templates'
25 26 27 28 29 30 31 32
            ],
        ],
    ]
);

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