accounts/console/config/config.php

34 lines
926 B
PHP
Raw Normal View History

<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/params.php')
);
return [
'id' => 'accounts-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'console\controllers',
'params' => $params,
'components' => [
'log' => [
'targets' => [
[
'class' => mito\sentry\SentryTarget::class,
'levels' => ['error', 'warning'],
],
[
'class' => yii\log\FileTarget::class,
'levels' => ['error', 'warning'],
],
],
],
],
'controllerMap' => [
'migrate' => [
'class' => yii\console\controllers\MigrateController::class,
'templateFile' => '@console/views/migration.php',
],
],
];