This repository has been archived by the owner on Aug 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
174 lines (169 loc) · 6.94 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?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',
'name'=> 'multi-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log','libra'],
'timezone' => 'UTC',
'controllerNamespace' => 'console\controllers',
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'controllerMap' => [
'fixture' => [
'class' => 'yii\console\controllers\FixtureController',
'namespace' => 'common\fixtures',
],
'migrate-db-namespaced' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
//sjaakp has NOT been aliased therefore use a double backslash
//installs the user table
'\\sjaakp\pluto\migrations',
//console has been aliased in common/config/bootstrap.php which appears in web/index.php
//installs the mysql auth tables and inserts data
'console\migrations\auth',
//installs the paypal tables
'frontend\modules\subscription\migrations',
//frontend has been aliased in common/config/bootstrap.php which appears in web/index.php
//installs the works tables and inserts data
'frontend\migrations',
],
'color'=>true,
'comment'=> 'You are migrating the namespaced tables to database connection component db which is your administration database.',
'db' => 'db',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db1' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db1',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db2' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db2',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db3' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db3',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db4' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db4',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db5' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db5',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db6' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db6',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db7' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db7',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db8' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db8',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db9' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db9',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
'migrate-db10' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'frontend\migrations',
],
'color'=>true,
'db' => 'db10',
'interactive'=>1,
'migrationPath' => null, // allows to disable not namespaced migration completely
],
],
'components' => [
'log' => [
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'authManager' => [
'class' => 'yii\rbac\DbManager'
],
],
'params' => $params,
'modules' => [
'libra' => [
'class' => 'sjaakp\pluto\Module',
// several options
],
'backuper'=> [
'class' => 'frontend\modules\backup\Module',
],
],
];