Commit d5ca44d2dc03fc55f259c40be92aa3f8e86b4662
1 parent
f020676c
Fixing issues
Showing
2 changed files
with
27 additions
and
0 deletions
Show diff stats
1 | +<?php | ||
2 | + | ||
3 | +$config = [ | ||
4 | + 'components' => [ | ||
5 | + 'request' => [ | ||
6 | + // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation | ||
7 | + 'cookieValidationKey' => 'F6f1zNftWODvpoKEftccK0nGjnlGGC_a', | ||
8 | + ], | ||
9 | + ] | ||
10 | +]; | ||
11 | + | ||
12 | +if (!YII_ENV_TEST) { | ||
13 | + // configuration adjustments for 'dev' environment | ||
14 | + $config['bootstrap'][] = 'debug'; | ||
15 | + $config['modules']['debug'] = [ | ||
16 | + 'class' => 'yii\debug\Module', | ||
17 | + 'allowedIPs' => ['77.47.190.198', '::80'] | ||
18 | + ]; | ||
19 | + | ||
20 | + $config['bootstrap'][] = 'gii'; | ||
21 | + $config['modules']['gii'] = 'yii\gii\Module'; | ||
22 | +} | ||
23 | + | ||
24 | +return $config; |