mirror of
https://github.com/elyby/accounts.git
synced 2024-10-31 16:03:01 +05:30
32 lines
864 B
PHP
32 lines
864 B
PHP
<?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',
|
|
'components' => [
|
|
'log' => [
|
|
'targets' => [
|
|
[
|
|
'class' => 'yii\log\FileTarget',
|
|
'levels' => ['error', 'warning'],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
'controllerMap' => [
|
|
'migrate' => [
|
|
'class' => 'yii\console\controllers\MigrateController',
|
|
'templateFile' => '@console/views/migration.php',
|
|
],
|
|
],
|
|
'params' => $params,
|
|
];
|