Blame view

environments/dev/backend/config/main-local.php 682 Bytes
6ba3c88a   Alex Savenko   all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?php
      
      $config = [
          'components' => [
              'request' => [
                  // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
                  'cookieValidationKey' => '',
              ],
          ],
      ];
      
      if (!YII_ENV_TEST) {
          // 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;