This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
forked from samsonasik/expressive-composer-installer
-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathconfig.php
199 lines (193 loc) · 9.27 KB
/
config.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
return [
'packages' => [
'aura/di' => '3.0.*@beta',
'filp/whoops' => '^1.1',
'xtreamwayz/pimple-container-interop' => '^1.0',
'ocramius/proxy-manager' => '^1.0',
'zendframework/zend-expressive-aurarouter' => '^1.0',
'zendframework/zend-expressive-fastroute' => '^1.0',
'zendframework/zend-expressive-platesrenderer' => '^1.0',
'zendframework/zend-expressive-twigrenderer' => '^1.0',
'zendframework/zend-expressive-zendrouter' => '^1.0',
'zendframework/zend-expressive-zendviewrenderer' => '^1.0',
'zendframework/zend-servicemanager' => '^2.7.3 || ^3.0',
],
'require-dev' => [
'filp/whoops'
],
'questions' => [
'router' => [
'question' => 'Which router do you want to use?',
'default' => 2,
// TRUE: Must choose one / FALSE: May choose one or none of the above
'required' => true,
// Enable custom package input
'custom-package' => true,
// Display warning when choosing a custom package
'custom-package-warning' => 'You need to write your own router adapter.',
'options' => [
1 => [
'name' => 'Aura.Router',
'packages' => [
'zendframework/zend-expressive-aurarouter',
],
'copy-files' => [
// Copy source file to target: '<source>' => '<target>'
'/Resources/config/routes-aura-router.php' => '/config/autoload/routes.global.php',
],
'minimal-files' => [
// Copy source file to target: '<source>' => '<target>'
'/Resources/config/routes-minimal-aura-router.php' => '/config/autoload/routes.global.php',
],
],
2 => [
'name' => 'FastRoute',
'packages' => [
'zendframework/zend-expressive-fastroute',
],
'copy-files' => [
'/Resources/config/routes-fast-route.php' => '/config/autoload/routes.global.php',
],
'minimal-files' => [
'/Resources/config/routes-minimal-fast-route.php' => '/config/autoload/routes.global.php',
],
],
3 => [
'name' => 'Zend Router',
'packages' => [
'zendframework/zend-expressive-zendrouter',
],
'copy-files' => [
'/Resources/config/routes-zf2-router.php' => '/config/autoload/routes.global.php',
],
'minimal-files' => [
'/Resources/config/routes-minimal-zf2-router.php' => '/config/autoload/routes.global.php',
],
],
],
],
'container' => [
'question' => 'Which container do you want to use for dependency injection?',
'default' => 3,
'required' => true,
'custom-package' => true,
'custom-package-warning' => 'You need to edit public/index.php to start the custom container.',
'options' => [
1 => [
'name' => 'Aura.Di',
'packages' => [
'aura/di',
],
'copy-files' => [
'/Resources/config/container-aura-di.php' => '/config/container.php',
],
'minimal-files' => [
'/Resources/config/container-aura-di.php' => '/config/container.php',
],
],
2 => [
'name' => 'Pimple',
'packages' => [
'xtreamwayz/pimple-container-interop',
],
'copy-files' => [
'/Resources/config/container-pimple.php' => '/config/container.php',
],
'minimal-files' => [
'/Resources/config/container-pimple.php' => '/config/container.php',
],
],
3 => [
'name' => 'Zend ServiceManager',
'packages' => [
'zendframework/zend-servicemanager',
'ocramius/proxy-manager',
],
'copy-files' => [
'/Resources/config/container-zend-servicemanager.php' => '/config/container.php',
],
'minimal-files' => [
'/Resources/config/container-zend-servicemanager.php' => '/config/container.php',
],
],
],
],
'template-engine' => [
'question' => 'Which template engine do you want to use?',
'default' => 'n',
'required' => false,
'custom-package' => true,
'options' => [
1 => [
'name' => 'Plates',
'packages' => [
'zendframework/zend-expressive-platesrenderer',
],
'copy-files' => [
'/Resources/config/templates-plates.php' => '/config/autoload/templates.global.php',
'/Resources/templates/plates-404.phtml' => '/templates/error/404.phtml',
'/Resources/templates/plates-error.phtml' => '/templates/error/error.phtml',
'/Resources/templates/plates-layout.phtml' => '/templates/layout/default.phtml',
'/Resources/templates/plates-home-page.phtml' => '/templates/app/home-page.phtml',
],
'minimal-files' => [
'/Resources/config/templates-plates.php' => '/config/autoload/templates.global.php',
],
],
2 => [
'name' => 'Twig',
'packages' => [
'zendframework/zend-expressive-twigrenderer',
],
'copy-files' => [
'/Resources/config/templates-twig.php' => '/config/autoload/templates.global.php',
'/Resources/templates/twig-404.html.twig' => '/templates/error/404.html.twig',
'/Resources/templates/twig-error.html.twig' => '/templates/error/error.html.twig',
'/Resources/templates/twig-layout.html.twig' => '/templates/layout/default.html.twig',
'/Resources/templates/twig-home-page.html.twig' => '/templates/app/home-page.html.twig',
],
'minimal-files' => [
'/Resources/config/templates-twig.php' => '/config/autoload/templates.global.php',
],
],
3 => [
'name' => 'Zend View <comment>installs Zend ServiceManager</comment>',
'packages' => [
'zendframework/zend-expressive-zendviewrenderer',
],
'copy-files' => [
'/Resources/config/templates-zend-view.php' => '/config/autoload/templates.global.php',
'/Resources/templates/zend-view-404.phtml' => '/templates/error/404.phtml',
'/Resources/templates/zend-view-error.phtml' => '/templates/error/error.phtml',
'/Resources/templates/zend-view-layout.phtml' => '/templates/layout/default.phtml',
'/Resources/templates/zend-view-home-page.phtml' => '/templates/app/home-page.phtml',
],
'minimal-files' => [
'/Resources/config/templates-zend-view.php' => '/config/autoload/templates.global.php',
],
],
],
],
'error-handler' => [
'question' => 'Which error handler do you want to use during development?',
'default' => 1,
'required' => false,
'custom-package' => true,
'options' => [
1 => [
'name' => 'Whoops',
'packages' => [
'filp/whoops',
],
'copy-files' => [
'/Resources/config/error-handler-whoops.php' => '/config/autoload/errorhandler.local.php',
],
'minimal-files' => [
'/Resources/config/error-handler-whoops.php' => '/config/autoload/errorhandler.local.php',
],
],
],
],
],
];