Blame view

common/config/main.php 1006 Bytes
1755c393   Yarik   Basic template in...
1
  <?php
8596ef4b   Alexey Boroda   -Seo component ready
2
3
      use artbox\core\components\SeoComponent;
      
6966d71b   Yarik   Makeup
4
5
6
      return [
          'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
          'components' => [
a42025b8   Yarik   Sitemap and slugb...
7
              'cache'     => [
6966d71b   Yarik   Makeup
8
9
                  'class' => 'yii\caching\FileCache',
              ],
a42025b8   Yarik   Sitemap and slugb...
10
              'i18n'      => [
6966d71b   Yarik   Makeup
11
12
13
                  'translations' => [
                      'core' => [
                          'class'    => 'yii\i18n\PhpMessageSource',
9576f402   Yarik   Namespaces and al...
14
                          'basePath' => '@artbox/core/messages',
6966d71b   Yarik   Makeup
15
                      ],
b313037a   Alexey Boroda   -Flesh widget ready
16
17
                  ],
              ],
a42025b8   Yarik   Sitemap and slugb...
18
              'filedb'    => [
6966d71b   Yarik   Makeup
19
20
21
                  'class' => 'yii2tech\filedb\Connection',
                  'path'  => '@common/config',
              ],
a42025b8   Yarik   Sitemap and slugb...
22
23
24
25
26
27
              'sitemapdb' => [
                  'class'          => 'yii2tech\filedb\Connection',
                  'path'           => '@common/config',
                  'primaryKeyName' => 'id',
              ],
              'seo'       => [
8596ef4b   Alexey Boroda   -Seo component ready
28
29
                  'class' => SeoComponent::className(),
              ],
b313037a   Alexey Boroda   -Flesh widget ready
30
          ],
6966d71b   Yarik   Makeup
31
      ];