Commit 9eaaca9dc5ac848bebb214864803d0b37f1f765c

Authored by Administrator
1 parent cd6a0e39

image size

backend/config/main.php
@@ -64,7 +64,9 @@ return [ @@ -64,7 +64,9 @@ return [
64 ] 64 ]
65 ], 65 ],
66 'components' => [ 66 'components' => [
67 - 67 + 'authManager' => [
  68 + 'class' => 'yii\rbac\DbManager',
  69 + ],
68 'user' => [ 70 'user' => [
69 'identityClass' => 'common\models\User', 71 'identityClass' => 'common\models\User',
70 'enableAutoLogin' => true, 72 'enableAutoLogin' => true,
common/config/main.php
@@ -36,9 +36,7 @@ return [ @@ -36,9 +36,7 @@ return [
36 ] 36 ]
37 ], 37 ],
38 ], 38 ],
39 - 'authManager' => [  
40 - 'class' => 'yii\rbac\DbManager',  
41 - ], 39 +
42 'cache' => [ 40 'cache' => [
43 'class' => 'yii\caching\FileCache', 41 'class' => 'yii\caching\FileCache',
44 ], 42 ],
frontend/config/main.php
@@ -12,6 +12,9 @@ return [ @@ -12,6 +12,9 @@ return [
12 'bootstrap' => ['log'], 12 'bootstrap' => ['log'],
13 'controllerNamespace' => 'frontend\controllers', 13 'controllerNamespace' => 'frontend\controllers',
14 'components' => [ 14 'components' => [
  15 + 'authManager' => [
  16 + 'class' => 'yii\rbac\DbManager',
  17 + ],
15 'user' => [ 18 'user' => [
16 'identityClass' => 'common\models\Customer', 19 'identityClass' => 'common\models\Customer',
17 'enableAutoLogin' => true, 20 'enableAutoLogin' => true,