|
17 | 17 | 'hyperf/async-queue' => [ |
18 | 18 | 'version' => '~2.0.0', |
19 | 19 | ], |
| 20 | + 'hyperf/database' => [ |
| 21 | + 'version' => '~2.0.0', |
| 22 | + ], |
| 23 | + 'hyperf/db-connection' => [ |
| 24 | + 'version' => '~2.0.0', |
| 25 | + ], |
20 | 26 | 'hyperf/model-cache' => [ |
21 | 27 | 'version' => '~2.0.0', |
22 | 28 | ], |
|
26 | 32 | 'hyperf/json-rpc' => [ |
27 | 33 | 'version' => '~2.0.0', |
28 | 34 | ], |
| 35 | + 'hyperf/redis' => [ |
| 36 | + 'version' => '~2.0.0', |
| 37 | + ], |
29 | 38 | 'hyperf/rpc' => [ |
30 | 39 | 'version' => '~2.0.0', |
31 | 40 | ], |
|
50 | 59 | 'hyperf/config-aliyun-acm' => [ |
51 | 60 | 'version' => '~2.0.0', |
52 | 61 | ], |
| 62 | + 'hyperf/config-etcd' => [ |
| 63 | + 'version' => '~2.0.0', |
| 64 | + ], |
53 | 65 | 'hyperf/tracer' => [ |
54 | 66 | 'version' => '~2.0.0', |
55 | 67 | ], |
|
60 | 72 | 'require-dev' => [ |
61 | 73 | ], |
62 | 74 | 'questions' => [ |
| 75 | + 'database' => [ |
| 76 | + 'question' => 'Do you want to use Database (MySQL Client) ?', |
| 77 | + 'default' => 'y', |
| 78 | + 'required' => false, |
| 79 | + 'custom-package' => true, |
| 80 | + 'options' => [ |
| 81 | + 'y' => [ |
| 82 | + 'name' => 'yes', |
| 83 | + 'packages' => [ |
| 84 | + 'hyperf/database', |
| 85 | + 'hyperf/db-connection', |
| 86 | + ], |
| 87 | + 'resources' => [ |
| 88 | + 'resources/database/databases.php' => 'config/autoload/databases.php', |
| 89 | + ], |
| 90 | + ], |
| 91 | + ], |
| 92 | + ], |
| 93 | + 'redis' => [ |
| 94 | + 'question' => 'Do you want to use Redis Client ?', |
| 95 | + 'default' => 'y', |
| 96 | + 'required' => false, |
| 97 | + 'custom-package' => true, |
| 98 | + 'options' => [ |
| 99 | + 'y' => [ |
| 100 | + 'name' => 'yes', |
| 101 | + 'packages' => [ |
| 102 | + 'hyperf/redis', |
| 103 | + ], |
| 104 | + 'resources' => [ |
| 105 | + 'resources/database/redis.php' => 'config/autoload/redis.php', |
| 106 | + ], |
| 107 | + ], |
| 108 | + ], |
| 109 | + ], |
63 | 110 | 'rpc' => [ |
64 | 111 | 'question' => 'Which RPC protocol do you want to use ?', |
65 | 112 | 'default' => 'n', |
66 | 113 | 'required' => false, |
67 | 114 | 'custom-package' => true, |
68 | 115 | 'options' => [ |
69 | 116 | 1 => [ |
70 | | - 'name' => 'JSON-RPC with Service Governance', |
| 117 | + 'name' => 'JSON RPC with Service Governance', |
71 | 118 | 'packages' => [ |
72 | 119 | 'hyperf/json-rpc', |
73 | 120 | 'hyperf/rpc', |
|
79 | 126 | ], |
80 | 127 | ], |
81 | 128 | 2 => [ |
82 | | - 'name' => 'JSON-RPC', |
| 129 | + 'name' => 'JSON RPC', |
83 | 130 | 'packages' => [ |
84 | 131 | 'hyperf/json-rpc', |
85 | 132 | 'hyperf/rpc', |
|
125 | 172 | 'resources/config_center/aliyun_acm.php' => 'config/autoload/aliyun_acm.php', |
126 | 173 | ], |
127 | 174 | ], |
| 175 | + 3 => [ |
| 176 | + 'name' => 'ETCD', |
| 177 | + 'packages' => [ |
| 178 | + 'hyperf/config-etcd', |
| 179 | + ], |
| 180 | + 'resources' => [ |
| 181 | + 'resources/config_center/etcd.php' => 'config/autoload/etcd.php', |
| 182 | + 'resources/config_center/config_etcd.php' => 'config/autoload/config_etcd.php', |
| 183 | + ], |
| 184 | + ], |
128 | 185 | ], |
129 | 186 | ], |
130 | 187 | 'constants' => [ |
|
134 | 191 | 'force' => true, |
135 | 192 | 'custom-package' => false, |
136 | 193 | 'options' => [ |
137 | | - 1 => [ |
| 194 | + 'y' => [ |
138 | 195 | 'name' => 'yes', |
139 | 196 | 'packages' => [ |
140 | 197 | 'hyperf/constants', |
|
153 | 210 | 'force' => true, |
154 | 211 | 'custom-package' => true, |
155 | 212 | 'options' => [ |
156 | | - 1 => [ |
| 213 | + 'y' => [ |
157 | 214 | 'name' => 'yes', |
158 | 215 | 'packages' => [ |
159 | 216 | 'hyperf/async-queue', |
|
162 | 219 | 'resources/async_queue/async_queue.php' => 'config/autoload/async_queue.php', |
163 | 220 | 'resources/async_queue/AsyncQueueConsumer.php' => 'app/Process/AsyncQueueConsumer.php', |
164 | 221 | 'resources/async_queue/QueueHandleListener.php' => 'app/Listener/QueueHandleListener.php', |
| 222 | + 'resources/database/redis.php' => 'config/autoload/redis.php', |
165 | 223 | ], |
166 | 224 | ], |
167 | 225 | ], |
|
173 | 231 | 'force' => true, |
174 | 232 | 'custom-package' => true, |
175 | 233 | 'options' => [ |
176 | | - 1 => [ |
| 234 | + 'y' => [ |
177 | 235 | 'name' => 'yes', |
178 | 236 | 'packages' => [ |
179 | 237 | 'hyperf/amqp', |
|
191 | 249 | 'force' => true, |
192 | 250 | 'custom-package' => true, |
193 | 251 | 'options' => [ |
194 | | - 1 => [ |
| 252 | + 'y' => [ |
195 | 253 | 'name' => 'yes', |
196 | 254 | 'packages' => [ |
197 | 255 | 'hyperf/model-cache', |
198 | 256 | ], |
199 | 257 | 'resources' => [ |
200 | 258 | 'resources/model_cache/Model.php' => 'app/Model/Model.php', |
201 | 259 | 'resources/model_cache/databases.php' => 'config/autoload/databases.php', |
| 260 | + 'resources/database/redis.php' => 'config/autoload/redis.php', |
202 | 261 | ], |
203 | 262 | ], |
204 | 263 | ], |
|
210 | 269 | 'force' => true, |
211 | 270 | 'custom-package' => true, |
212 | 271 | 'options' => [ |
213 | | - 1 => [ |
| 272 | + 'y' => [ |
214 | 273 | 'name' => 'yes', |
215 | 274 | 'packages' => [ |
216 | 275 | 'hyperf/elasticsearch', |
217 | 276 | ], |
218 | 277 | 'resources' => [ |
219 | | - // 'resources/elasticsearch/elasticsearch.php' => 'config/autoload/elasticsearch.php', |
220 | 278 | ], |
221 | 279 | ], |
222 | 280 | ], |
|
228 | 286 | 'force' => true, |
229 | 287 | 'custom-package' => true, |
230 | 288 | 'options' => [ |
231 | | - 1 => [ |
| 289 | + 'y' => [ |
232 | 290 | 'name' => 'yes', |
233 | 291 | 'packages' => [ |
234 | 292 | 'hyperf/tracer', |
|
0 commit comments