2016-01-02 16:43:18 +03:00
|
|
|
<?php
|
|
|
|
$params = array_merge(
|
|
|
|
require(__DIR__ . '/../../common/config/params.php'),
|
2016-09-16 01:28:28 +03:00
|
|
|
require(__DIR__ . '/params.php')
|
2016-01-02 16:43:18 +03:00
|
|
|
);
|
|
|
|
|
|
|
|
return [
|
2016-09-16 01:28:28 +03:00
|
|
|
'id' => 'accounts-console',
|
2016-01-02 16:43:18 +03:00
|
|
|
'basePath' => dirname(__DIR__),
|
|
|
|
'bootstrap' => ['log'],
|
|
|
|
'controllerNamespace' => 'console\controllers',
|
2016-09-16 01:28:28 +03:00
|
|
|
'params' => $params,
|
2016-01-02 16:43:18 +03:00
|
|
|
'components' => [
|
|
|
|
'log' => [
|
|
|
|
'targets' => [
|
2016-11-22 01:47:41 +03:00
|
|
|
[
|
2016-12-07 23:22:49 +03:00
|
|
|
'class' => mito\sentry\Target::class,
|
2016-11-22 01:47:41 +03:00
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
2016-01-02 16:43:18 +03:00
|
|
|
[
|
2016-09-16 01:28:28 +03:00
|
|
|
'class' => yii\log\FileTarget::class,
|
2016-01-02 16:43:18 +03:00
|
|
|
'levels' => ['error', 'warning'],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2016-01-03 03:18:37 +03:00
|
|
|
'controllerMap' => [
|
|
|
|
'migrate' => [
|
2016-09-16 01:28:28 +03:00
|
|
|
'class' => yii\console\controllers\MigrateController::class,
|
2016-01-03 03:18:37 +03:00
|
|
|
'templateFile' => '@console/views/migration.php',
|
|
|
|
],
|
|
|
|
],
|
2016-01-02 16:43:18 +03:00
|
|
|
];
|