123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- $params = array_merge(
- require __DIR__ . '/../../common/config/params.php',
- require __DIR__ . '/../../common/config/params-local.php',
- require __DIR__ . '/params.php',
- require __DIR__ . '/params-local.php'
- );
- return [
- 'id' => 'app-console',
- 'basePath' => dirname(__DIR__),
- 'bootstrap' => ['log'],
- 'controllerNamespace' => 'console\controllers',
- 'aliases' => [
- '@bower' => '@vendor/bower-asset',
- '@npm' => '@vendor/npm-asset',
- ],
- 'controllerMap' => [
- 'fixture' => [
- 'class' => 'yii\console\controllers\FixtureController',
- 'namespace' => 'common\fixtures',
- ],
- ],
- 'components' => [
- 'log' => [
- 'targets' => [
- [
- 'class' => 'yii\log\FileTarget',
- 'levels' => ['error', 'warning'],
- ],
- ],
- ],
- 'db' => require __DIR__ . '/../../common/config/db.php',
- 'redis' => [
- 'class' => 'yii\redis\Connection',
- 'hostname' => 'localhost',
- 'port' => 6379,
- 'database' => 0,
- ],
- ],
- 'params' => $params,
- ];
|