Blame view

common/config/main.php 3.22 KB
950817c6   Alex Savenko   first commit
1
2
3
4
5
6
7
8
9
  <?php
      use artbox\catalog\helpers\FilterHelper;
      use artbox\core\components\AliasCache;
      use artbox\core\components\SeoComponent;
      
      return [
          'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
          'modules'    => [
              'imagemanager' => [
a8aa0f7d   alex   Add new noam148 m...
10
  	            'class' => 'backend\components\noam148\imagemanager\Module',
950817c6   Alex Savenko   first commit
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
                  'canUploadImage'       => true,
                  'canRemoveImage'       => function () {
                      return true;
                  },
                  'setBlameableBehavior' => false,
                  'cssFiles'             => [
                      'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
                  ],
              ],
          ],
          'components' => [
              'cache'              => [
                  'class' => 'yii\caching\FileCache',
              ],
              'i18n'               => [
                  'translations' => [
                      'core'    => [
                          'class'    => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@artbox/core/messages',
                      ],
                      'catalog' => [
                          'class'    => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@artbox/catalog/messages',
                      ],
                      'app'     => [
                          'class'    => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@common/messages',
                      ],
                      'blog'    => [
                          'class'    => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@artbox/weblog/messages',
                      ],
                      'order'   => [
                          'class'    => 'yii\i18n\PhpMessageSource',
                          'basePath' => '@artbox/order/messages',
                      ],
                  ],
              ],
              'filedb'             => [
                  'class' => 'yii2tech\filedb\Connection',
                  'path'  => '@common/config',
              ],
              'sitemapdb'          => [
                  'class'          => 'yii2tech\filedb\Connection',
                  'path'           => '@common/config',
                  'primaryKeyName' => 'id',
              ],
              'seo'                => [
                  'class' => SeoComponent::className(),
              ],
              'filter'             => [
                  'class' => FilterHelper::className(),
              ],
a8aa0f7d   alex   Add new noam148 m...
64
  	        # пересозданный модуль, детальнее в back\com\noam\docs\why
950817c6   Alex Savenko   first commit
65
              'imagemanager'       => [
a8aa0f7d   alex   Add new noam148 m...
66
  	            'class' => 'backend\components\noam148\imagemanager\components\ImageManagerGetPath',
950817c6   Alex Savenko   first commit
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
                  'mediaPath'   => dirname(dirname(__DIR__)) . '/storage',
                  'cachePath'   => '../../storage/cache',
                  'useFilename' => true,
                  'absoluteUrl' => false,
              ],
              'assetManager'       => [
                  'bundles' => [
                      'yii\jui\JuiAsset' => [
                          'css' => [],
                      ],
                  ],
              ],
              'aliasCache'         => [
                  'class' => AliasCache::className(),
              ],
          ],
      ];