You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
#!/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__ . '/_console_bootstrap.php'; |
|
|
|
$config = yii\helpers\ArrayHelper::merge( |
|
require(ROOT_DIR . '/common/config/main.php'), |
|
require(ROOT_DIR . '/common/config/main-local.php'), |
|
require(ROOT_DIR . '/console/config/main.php'), |
|
require(ROOT_DIR . '/console/config/main-local.php'), |
|
[ |
|
'components' => [ |
|
'db' => [ |
|
'dsn' => 'mysql:host=localhost;dbname=yii2_advanced_functional', |
|
], |
|
], |
|
'controllerMap' => [ |
|
'fixture' => [ |
|
'class' => 'yii\faker\FixtureController', |
|
'fixtureDataPath' => dirname(__DIR__) . '_data/fixtures', |
|
'templatePath' => dirname(__DIR__) . '_data/templates' |
|
], |
|
], |
|
] |
|
); |
|
|
|
$application = new yii\console\Application($config); |
|
$exitCode = $application->run(); |
|
exit($exitCode);
|
|
|