-
Notifications
You must be signed in to change notification settings - Fork 115
/
main.php
executable file
·55 lines (54 loc) · 1.66 KB
/
main.php
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
<?php
return [
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'timeZone' => 'Europe/Moscow',
'modules' => [
'users' => [
'class' => 'vova07\users\Module',
'robotEmail' => '[email protected]',
'robotName' => 'Robot'
],
'blogs' => [
'class' => 'vova07\blogs\Module'
],
'comments' => [
'class' => 'vova07\comments\Module'
]
],
'components' => [
'user' => [
'class' => 'yii\web\User',
'identityClass' => 'vova07\users\models\User',
'loginUrl' => ['/users/guest/login']
],
'cache' => [
'class' => 'yii\caching\FileCache',
'cachePath' => '@root/cache',
'keyPrefix' => 'yii2start'
],
'urlManager' => [
'enablePrettyUrl' => true,
'enableStrictParsing' => true,
'showScriptName' => false,
'suffix' => '/'
],
'assetManager' => [
'linkAssets' => true
],
'authManager' => [
'class' => 'yii\rbac\PhpManager',
'defaultRoles' => [
'user'
],
'itemFile' => '@vova07/rbac/data/items.php',
'assignmentFile' => '@vova07/rbac/data/assignments.php',
'ruleFile' => '@vova07/rbac/data/rules.php',
],
'formatter' => [
'dateFormat' => 'dd.MM.y',
'datetimeFormat' => 'HH:mm:ss dd.MM.y'
],
'db' => require(__DIR__ . '/db.php')
],
'params' => require(__DIR__ . '/params.php')
];