mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 10:42:16 +05:30
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
|
$params = array_merge(
|
|
require __DIR__ . '/../../common/config/params.php',
|
|
require __DIR__ . '/params.php'
|
|
);
|
|
|
|
return [
|
|
'id' => 'accounts-console',
|
|
'basePath' => dirname(__DIR__),
|
|
'bootstrap' => ['log', 'queue'],
|
|
'controllerNamespace' => 'console\controllers',
|
|
'params' => $params,
|
|
'components' => [
|
|
'log' => [
|
|
'targets' => [
|
|
[
|
|
'class' => mito\sentry\Target::class,
|
|
'levels' => ['error', 'warning'],
|
|
],
|
|
[
|
|
'class' => yii\log\FileTarget::class,
|
|
'levels' => ['error', 'warning'],
|
|
],
|
|
],
|
|
],
|
|
'urlManager' => [
|
|
'hostInfo' => getenv('DOMAIN') ?: 'https://account.ely.by',
|
|
],
|
|
],
|
|
'controllerMap' => [
|
|
'migrate' => [
|
|
'class' => yii\console\controllers\MigrateController::class,
|
|
'templateFile' => '@console/views/migration.php',
|
|
],
|
|
],
|
|
];
|