Blame view

console/config/main.php 777 Bytes
b0f143c3   Yarik   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <?php
  $params = array_merge(
      require(__DIR__ . '/../../common/config/params.php'),
      require(__DIR__ . '/../../common/config/params-local.php'),
      require(__DIR__ . '/params.php'),
      require(__DIR__ . '/params-local.php')
  );
  
  return [
      'id' => 'app-console',
      'basePath' => dirname(__DIR__),
      'bootstrap' => ['log'],
      'controllerNamespace' => 'console\controllers',
      'components' => [
c8a3b6d1   Administrator   firs page
15
16
17
18
          'urlManager' => [
              'enablePrettyUrl' => false,
              'showScriptName'  => false
          ],
b0f143c3   Yarik   first commit
19
20
21
22
23
24
25
26
27
28
29
          'log' => [
              'targets' => [
                  [
                      'class' => 'yii\log\FileTarget',
                      'levels' => ['error', 'warning'],
                  ],
              ],
          ],
      ],
      'params' => $params,
  ];