瀏覽代碼

补充缺失文件

Robin 6 年之前
父節點
當前提交
18270c3c11

+ 25 - 0
normand/frontend/frontend/config/main-local.php

@@ -0,0 +1,25 @@
+<?php
+
+$config = [
+    'components' => [
+        'request' => [
+            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
+            'cookieValidationKey' => 'jagArU5UunwUflL8HPZx_jV950RvQrcV6',
+        ],
+    ],
+];
+
+if (YII_ENV_DEV) {
+    // configuration adjustments for 'dev' environment
+    $config['bootstrap'][] = 'debug';
+    $config['modules']['debug'] = [
+        'class' => 'yii\debug\Module',
+    ];
+
+    $config['bootstrap'][] = 'gii';
+    $config['modules']['gii'] = [
+        'class' => 'yii\gii\Module',
+    ];
+}
+
+return $config;

+ 4 - 0
normand/frontend/frontend/config/params-local.php

@@ -0,0 +1,4 @@
+<?php
+return [
+    'user.passwordResetTokenExpire' => 3600000,
+];

+ 9 - 0
normand/frontend/frontend/config/test-local.php

@@ -0,0 +1,9 @@
+<?php
+return yii\helpers\ArrayHelper::merge(
+    require(__DIR__ . '/../../common/config/test-local.php'),
+    require(__DIR__ . '/main.php'),
+    require(__DIR__ . '/main-local.php'),
+    require(__DIR__ . '/test.php'),
+    [
+    ]
+);