Skip to content

Commit

Permalink
- Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deadmantfa committed Feb 27, 2021
1 parent 323e081 commit b4e4903
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion backend/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
return [
'id' => 'app-backend',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'bootstrap' => ['log', 'user'],
'controllerNamespace' => 'backend\controllers',
'defaultRoute' => '/user/security/login',
'modules' => [
Expand Down
10 changes: 6 additions & 4 deletions console/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

use bedezign\yii2\audit\components\console\ErrorHandler;
use justcoded\yii2\rbac\commands\RbacController;
use kartik\tree\Module;
use kartik\datecontrol\Module as DateControlModule;
use kartik\grid\Module as GridviewModule;
use kartik\tree\Module as TreeModule;
use yii\console\controllers\FixtureController;
use yii\console\controllers\MigrateController;

Expand All @@ -27,16 +29,16 @@
'class' => Da\User\Module::class,
],
'gridview' => [
'class' => \kartik\grid\Module::class,
'class' => GridviewModule::class,
// see settings on http://demos.krajee.com/grid#module
],
'datecontrol' => [
'class' => \kartik\datecontrol\Module::class,
'class' => DateControlModule::class,
// see settings on http://demos.krajee.com/datecontrol#module
],
// If you use tree table
'treemanager' => [
'class' => Module::class,
'class' => TreeModule::class,
// see settings on http://demos.krajee.com/tree-manager#module
],
],
Expand Down
5 changes: 3 additions & 2 deletions environments/prod/common/config/main-local.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use bedezign\yii2\audit\Audit;
use common\models\User;
use yii\db\Connection;
use yii\swiftmailer\Mailer;

return [
Expand All @@ -18,7 +19,7 @@
],
'components' => [
'db' => [
'class' => 'yii\db\Connection',
'class' => Connection::class,
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
'username' => 'root',
'password' => '',
Expand All @@ -28,5 +29,5 @@
'class' => Mailer::class,
'viewPath' => '@common/mail',
],
],
]
];
11 changes: 0 additions & 11 deletions frontend/config/main.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use Da\User\Contracts\MailChangeStrategyInterface;
use mirocow\elasticsearch\log\ElasticsearchTarget;
use yii\web\ErrorHandler;

$params = array_merge(
Expand Down Expand Up @@ -36,16 +35,6 @@
// this is the name of the session cookie used for login on the frontend
'name' => 'advanced-frontend',
],
'log' => [
'targets' => [
[
'class' => ElasticsearchTarget::class,
'levels' => ['error', 'warning'],
'index' => 'yii-log',
'type' => 'frontend',
],
],
],
'errorHandler' => [
'class' => ErrorHandler::class,
'errorAction' => 'site/error',
Expand Down

0 comments on commit b4e4903

Please sign in to comment.