2024-06-13 17:07:58 +03:00
|
|
|
<?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::class,
|
|
|
|
'namespace' => 'common\fixtures',
|
|
|
|
],
|
2024-07-05 10:27:50 +03:00
|
|
|
'migrate' => [
|
|
|
|
'class' => yii\console\controllers\MigrateController::class,
|
|
|
|
'migrationNamespaces' => [
|
|
|
|
'backend\modules\user\migrations',
|
|
|
|
'backend\modules\schema\migrations',
|
|
|
|
],
|
|
|
|
],
|
2024-06-13 17:07:58 +03:00
|
|
|
],
|
|
|
|
'components' => [
|
|
|
|
'log' => [
|
|
|
|
'targets' => [
|
|
|
|
[
|
|
|
|
'class' => \yii\log\FileTarget::class,
|
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'params' => $params,
|
|
|
|
];
|