components.php
3.1 KB
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
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
/**
* @author FilamentV <vortex.filament@gmail.com>
* @copyright (c), Thread
*/
return [
//CORE
'param' => [
'class' => \thread\modules\sys\modules\configs\components\ConfigsParams::class,
],
'growl' => [
'class' => \thread\modules\sys\modules\growl\components\Growl::class,
],
'loogbook' => [
'class' => \thread\modules\sys\modules\logbook\components\Logbook::class,
],
'languages' => [
'class' => \thread\app\model\Languages::class,
'languageModel' => \thread\app\model\Language::class,
],
'queue' => [
'class' => \yii\queue\file\Queue::class,
'path' => '@root/runtime/queue',
'as log' => \yii\queue\LogBehavior::class
],
//SEO
'metatag' => [
'class' => \thread\modules\seo\components\MetaTag::class
],
'metabaseinfo' => [
'class' => \thread\modules\seo\modules\info\components\MetaBaseInfo::class
],
//DEFAULT CACHE
'cache' => [
'class' => \yii\caching\FileCache::class,
'cachePath' => '@runtime',
'keyPrefix' => 'thread'
],
'mailer' => [
'class' => \yii\swiftmailer\Mailer::class,
'useFileTransport' => false,
'enableSwiftMailerLogging' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
],
],
'request' => [
'class' => \thread\app\web\Request::class,
],
'urlManager' => [
'class' => \thread\app\web\UrlManager::class,
'enablePrettyUrl' => true,
'enableStrictParsing' => true,
'showScriptName' => false,
],
'authManager' => [
'class' => \yii\rbac\DbManager::class,
],
'assetManager' => [
'class' => \yii\web\AssetManager::class,
'appendTimestamp' => true,
'linkAssets' => false,
'bundles' => [
'yii\web\JqueryAsset' => [
'js' => [
// YII_ENV_DEV ? 'jquery.js' : 'jquery.min.js'
'jquery.min.js',
]
],
'yii\bootstrap\BootstrapAsset' => [
'css' => [
// YII_ENV_DEV ? 'css/bootstrap.css' : 'css/bootstrap.min.css',
'css/bootstrap.min.css'
]
],
'yii\bootstrap\BootstrapPluginAsset' => [
'js' => [
// YII_ENV_DEV ? 'js/bootstrap.js' : 'js/bootstrap.min.js',
'js/bootstrap.min.js'
]
],
'yii\web\YiiAsset' => [
'js' => [
// YII_ENV_DEV ? 'yii.js' : 'yii.min.js',
'yii.js'
]
]
],
],
'i18n' => [
'translations' => [
'app' => [
'class' => \yii\i18n\PhpMessageSource::class,
'basePath' => '@thread/app/messages',
'fileMap' => [
'app' => 'app.php',
],
// 'on missingTranslation' => [\thread\app\base\i18n\TranslationEventHandler::class, 'handleMissingTranslation']
],
]
],
];