|
|
|
<?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',
|
|
|
|
'common\bootstrap\SetUp',
|
|
|
|
'queue',
|
|
|
|
],
|
|
|
|
'controllerNamespace' => 'console\controllers',
|
|
|
|
'aliases' => [
|
|
|
|
'@bower' => '@vendor/bower-asset',
|
|
|
|
'@npm' => '@vendor/npm-asset',
|
|
|
|
],
|
|
|
|
'controllerMap' => [
|
|
|
|
'fixture' => [
|
|
|
|
'class' => 'yii\console\controllers\FixtureController',
|
|
|
|
'namespace' => 'common\fixtures',
|
|
|
|
],
|
|
|
|
'migrate' => [
|
|
|
|
'class' => 'fishvision\migrate\controllers\MigrateController',
|
|
|
|
'autoDiscover' => true,
|
|
|
|
'migrationPaths' => [
|
|
|
|
'@vendor/yiisoft/yii2/rbac/migrations',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'components' => [
|
|
|
|
'log' => [
|
|
|
|
'targets' => [
|
|
|
|
[
|
|
|
|
'class' => 'yii\log\FileTarget',
|
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'backendUrlManager' => require __DIR__ . '/../../backend/config/urlManager.php',
|
|
|
|
'frontendUrlManager' => require __DIR__ . '/../../frontend/config/urlManager.php',
|
|
|
|
'i18n' => [
|
|
|
|
'translations' => [
|
|
|
|
'main' => [
|
|
|
|
'class' => 'yii\i18n\PhpMessageSource',
|
|
|
|
'basePath' => '@backend/messages',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'params' => $params,
|
|
|
|
];
|