2016-01-02 19:13:18 +05:30
|
|
|
<?php
|
|
|
|
return [
|
2016-09-16 03:58:28 +05:30
|
|
|
'id' => 'accounts-console',
|
2016-01-02 19:13:18 +05:30
|
|
|
'basePath' => dirname(__DIR__),
|
2017-11-26 07:14:41 +05:30
|
|
|
'bootstrap' => ['log', 'queue'],
|
2016-01-02 19:13:18 +05:30
|
|
|
'controllerNamespace' => 'console\controllers',
|
|
|
|
'components' => [
|
|
|
|
'log' => [
|
|
|
|
'targets' => [
|
2016-11-22 04:17:41 +05:30
|
|
|
[
|
2016-12-08 01:52:49 +05:30
|
|
|
'class' => mito\sentry\Target::class,
|
2016-11-22 04:17:41 +05:30
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
2016-01-02 19:13:18 +05:30
|
|
|
[
|
2016-09-16 03:58:28 +05:30
|
|
|
'class' => yii\log\FileTarget::class,
|
2016-01-02 19:13:18 +05:30
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2017-11-26 07:14:41 +05:30
|
|
|
'urlManager' => [
|
|
|
|
'hostInfo' => getenv('DOMAIN') ?: 'https://account.ely.by',
|
|
|
|
],
|
2017-11-29 05:08:11 +05:30
|
|
|
'queue' => [
|
|
|
|
'on afterError' => [new console\components\ErrorHandler(), 'handleQueueError'],
|
|
|
|
],
|
2016-01-02 19:13:18 +05:30
|
|
|
],
|
2016-01-03 05:48:37 +05:30
|
|
|
'controllerMap' => [
|
|
|
|
'migrate' => [
|
2017-11-26 07:14:41 +05:30
|
|
|
'class' => yii\console\controllers\MigrateController::class,
|
2016-01-03 05:48:37 +05:30
|
|
|
'templateFile' => '@console/views/migration.php',
|
|
|
|
],
|
|
|
|
],
|
2016-01-02 19:13:18 +05:30
|
|
|
];
|