|
11 | 11 |
|
12 | 12 | namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
13 | 13 |
|
14 |
| - |
15 | 14 | use Symfony\Bundle\FrameworkBundle\Command\AboutCommand;
|
16 | 15 | use Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand;
|
17 | 16 | use Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand;
|
|
67 | 66 | ->set('console.command.assets_install', AssetsInstallCommand::class)
|
68 | 67 | ->args([
|
69 | 68 | service('filesystem'),
|
70 |
| - param('kernel.project_dir') |
| 69 | + param('kernel.project_dir'), |
71 | 70 | ])
|
72 | 71 | ->tag('console.command', ['command' => 'assets:install'])
|
73 | 72 |
|
74 | 73 | ->set('console.command.cache_clear', CacheClearCommand::class)
|
75 | 74 | ->args([
|
76 | 75 | service('cache_clearer'),
|
77 |
| - service('filesystem') |
| 76 | + service('filesystem'), |
78 | 77 | ])
|
79 | 78 | ->tag('console.command', ['command' => 'cache:clear'])
|
80 | 79 |
|
81 | 80 | ->set('console.command.cache_pool_clear', CachePoolClearCommand::class)
|
82 | 81 | ->args([
|
83 |
| - service('cache.global_clearer') |
| 82 | + service('cache.global_clearer'), |
84 | 83 | ])
|
85 | 84 | ->tag('console.command', ['command' => 'cache:pool:clear'])
|
86 | 85 |
|
87 | 86 | ->set('console.command.cache_pool_prune', CachePoolPruneCommand::class)
|
88 | 87 | ->args([
|
89 |
| - [] |
| 88 | + [], |
90 | 89 | ])
|
91 | 90 | ->tag('console.command', ['command' => 'cache:pool:prune'])
|
92 | 91 |
|
93 | 92 | ->set('console.command.cache_pool_delete', CachePoolDeleteCommand::class)
|
94 | 93 | ->args([
|
95 |
| - service('cache.global_clearer') |
| 94 | + service('cache.global_clearer'), |
96 | 95 | ])
|
97 | 96 | ->tag('console.command', ['command' => 'cache:pool:delete'])
|
98 | 97 |
|
99 | 98 | ->set('console.command.cache_pool_list', CachePoolListCommand::class)
|
100 | 99 | ->args([
|
101 |
| - null |
| 100 | + null, |
102 | 101 | ])
|
103 | 102 | ->tag('console.command', ['command' => 'cache:pool:list'])
|
104 | 103 |
|
105 | 104 | ->set('console.command.cache_warmup', CacheWarmupCommand::class)
|
106 | 105 | ->args([
|
107 |
| - service('cache_warmer') |
| 106 | + service('cache_warmer'), |
108 | 107 | ])
|
109 | 108 | ->tag('console.command', ['command' => 'cache:warmup'])
|
110 | 109 |
|
|
123 | 122 | ->set('console.command.debug_autowiring', DebugAutowiringCommand::class)
|
124 | 123 | ->args([
|
125 | 124 | null,
|
126 |
| - service('debug.file_link_formatter')->nullOnInvalid() |
| 125 | + service('debug.file_link_formatter')->nullOnInvalid(), |
127 | 126 | ])
|
128 | 127 | ->tag('console.command', ['command' => 'debug:autowiring'])
|
129 | 128 |
|
130 | 129 | ->set('console.command.event_dispatcher_debug', EventDispatcherDebugCommand::class)
|
131 | 130 | ->args([
|
132 |
| - service('event_dispatcher') |
| 131 | + service('event_dispatcher'), |
133 | 132 | ])
|
134 | 133 | ->tag('console.command', ['command' => 'debug:event-dispatcher'])
|
135 | 134 |
|
136 | 135 | ->set('console.command.messenger_consume_messages', ConsumeMessagesCommand::class)
|
137 | 136 | ->args([
|
138 |
| - null, # Routable message bus |
| 137 | + null, // Routable message bus |
139 | 138 | service('messenger.receiver_locator'),
|
140 | 139 | service('event_dispatcher'),
|
141 | 140 | service('logger')->nullOnInvalid(),
|
142 |
| - [] # Receiver names |
| 141 | + [], // Receiver names |
143 | 142 | ])
|
144 | 143 | ->tag('console.command', ['command' => 'messenger:consume'])
|
145 | 144 | ->tag('monolog.logger', ['channel' => 'messenger'])
|
146 | 145 |
|
147 | 146 | ->set('console.command.messenger_setup_transports', SetupTransportsCommand::class)
|
148 | 147 | ->args([
|
149 | 148 | service('messenger.receiver_locator'),
|
150 |
| - [] # Receiver names |
| 149 | + [], // Receiver names |
151 | 150 | ])
|
152 | 151 | ->tag('console.command', ['command' => 'messenger:setup-transports'])
|
153 | 152 |
|
154 | 153 | ->set('console.command.messenger_debug', DebugCommand::class)
|
155 | 154 | ->args([
|
156 |
| - [] # Message to handlers mapping |
| 155 | + [], // Message to handlers mapping |
157 | 156 | ])
|
158 | 157 | ->tag('console.command', ['command' => 'debug:messenger'])
|
159 | 158 |
|
160 | 159 | ->set('console.command.messenger_stop_workers', StopWorkersCommand::class)
|
161 | 160 | ->args([
|
162 |
| - service('cache.messenger.restart_workers_signal') |
| 161 | + service('cache.messenger.restart_workers_signal'), |
163 | 162 | ])
|
164 | 163 | ->tag('console.command', ['command' => 'messenger:stop-workers'])
|
165 | 164 |
|
166 | 165 | ->set('console.command.messenger_failed_messages_retry', FailedMessagesRetryCommand::class)
|
167 | 166 | ->args([
|
168 |
| - null, # Receiver name |
169 |
| - null, # Receiver |
| 167 | + null, // Receiver name |
| 168 | + null, // Receiver |
170 | 169 | service('messenger.routable_message_bus'),
|
171 | 170 | service('event_dispatcher'),
|
172 |
| - service('logger') |
| 171 | + service('logger'), |
173 | 172 | ])
|
174 | 173 | ->tag('console.command', ['command' => 'messenger:failed:retry'])
|
175 | 174 |
|
176 | 175 | ->set('console.command.messenger_failed_messages_show', FailedMessagesShowCommand::class)
|
177 | 176 | ->args([
|
178 |
| - null, # Receiver name |
179 |
| - null # Receiver |
| 177 | + null, // Receiver name |
| 178 | + null, // Receiver |
180 | 179 | ])
|
181 | 180 | ->tag('console.command', ['command' => 'messenger:failed:show'])
|
182 | 181 |
|
183 | 182 | ->set('console.command.messenger_failed_messages_remove', FailedMessagesRemoveCommand::class)
|
184 | 183 | ->args([
|
185 |
| - null, # Receiver name |
186 |
| - null # Receiver |
| 184 | + null, // Receiver name |
| 185 | + null, // Receiver |
187 | 186 | ])
|
188 | 187 | ->tag('console.command', ['command' => 'messenger:failed:remove'])
|
189 | 188 |
|
190 | 189 | ->set('console.command.router_debug', RouterDebugCommand::class)
|
191 | 190 | ->args([
|
192 | 191 | service('router'),
|
193 |
| - service('debug.file_link_formatter')->nullOnInvalid() |
| 192 | + service('debug.file_link_formatter')->nullOnInvalid(), |
194 | 193 | ])
|
195 | 194 | ->tag('console.command', ['command' => 'debug:router'])
|
196 | 195 |
|
197 | 196 | ->set('console.command.router_match', RouterMatchCommand::class)
|
198 | 197 | ->args([
|
199 | 198 | service('router'),
|
200 |
| - tagged_iterator('routing.expression_language_provider') |
| 199 | + tagged_iterator('routing.expression_language_provider'), |
201 | 200 | ])
|
202 | 201 | ->tag('console.command', ['command' => 'router:match'])
|
203 | 202 |
|
|
207 | 206 | service('translation.reader'),
|
208 | 207 | service('translation.extractor'),
|
209 | 208 | param('translator.default_path'),
|
210 |
| - null, # twig.default_path |
211 |
| - [], # Translator paths |
212 |
| - [] # Twig paths |
| 209 | + null, // twig.default_path |
| 210 | + [], // Translator paths |
| 211 | + [], // Twig paths |
213 | 212 | ])
|
214 | 213 | ->tag('console.command', ['command' => 'debug:translation'])
|
215 | 214 |
|
|
220 | 219 | service('translation.extractor'),
|
221 | 220 | param('kernel.default_locale'),
|
222 | 221 | param('translator.default_path'),
|
223 |
| - null, # twig.default_path |
224 |
| - [], # Translator paths |
225 |
| - [], # Twig paths |
| 222 | + null, // twig.default_path |
| 223 | + [], // Translator paths |
| 224 | + [], // Twig paths |
226 | 225 | ])
|
227 | 226 | ->tag('console.command', ['command' => 'translation:update'])
|
228 | 227 |
|
|
238 | 237 | ->set('console.command.form_debug', \Symfony\Component\Form\Command\DebugCommand::class)
|
239 | 238 | ->args([
|
240 | 239 | service('form.registry'),
|
241 |
| - [], # All form types namespaces are stored here by FormPass |
242 |
| - [], # All services form types are stored here by FormPass |
243 |
| - [], # All type extensions are stored here by FormPass |
244 |
| - [], # All type guessers are stored here by FormPass |
245 |
| - service('debug.file_link_formatter')->nullOnInvalid() |
| 240 | + [], // All form types namespaces are stored here by FormPass |
| 241 | + [], // All services form types are stored here by FormPass |
| 242 | + [], // All type extensions are stored here by FormPass |
| 243 | + [], // All type guessers are stored here by FormPass |
| 244 | + service('debug.file_link_formatter')->nullOnInvalid(), |
246 | 245 | ])
|
247 | 246 | ->tag('console.command', ['command' => 'debug:form'])
|
248 | 247 |
|
249 | 248 | ->set('console.command.secrets_set', SecretsSetCommand::class)
|
250 | 249 | ->args([
|
251 | 250 | service('secrets.vault'),
|
252 |
| - service('secrets.local_vault')->nullOnInvalid() |
| 251 | + service('secrets.local_vault')->nullOnInvalid(), |
253 | 252 | ])
|
254 | 253 | ->tag('console.command', ['command' => 'secrets:set'])
|
255 | 254 |
|
256 | 255 | ->set('console.command.secrets_remove', SecretsRemoveCommand::class)
|
257 | 256 | ->args([
|
258 | 257 | service('secrets.vault'),
|
259 |
| - service('secrets.local_vault')->nullOnInvalid() |
| 258 | + service('secrets.local_vault')->nullOnInvalid(), |
260 | 259 | ])
|
261 | 260 | ->tag('console.command', ['command' => 'secrets:remove'])
|
262 | 261 |
|
263 | 262 | ->set('console.command.secrets_generate_key', SecretsGenerateKeysCommand::class)
|
264 | 263 | ->args([
|
265 | 264 | service('secrets.vault'),
|
266 |
| - service('secrets.local_vault')->ignoreOnInvalid() |
| 265 | + service('secrets.local_vault')->ignoreOnInvalid(), |
267 | 266 | ])
|
268 | 267 | ->tag('console.command', ['command' => 'secrets:generate-keys'])
|
269 | 268 |
|
270 | 269 | ->set('console.command.secrets_list', SecretsListCommand::class)
|
271 | 270 | ->args([
|
272 | 271 | service('secrets.vault'),
|
273 |
| - service('secrets.local_vault') |
| 272 | + service('secrets.local_vault'), |
274 | 273 | ])
|
275 | 274 | ->tag('console.command', ['command' => 'secrets:list'])
|
276 | 275 |
|
277 | 276 | ->set('console.command.secrets_decrypt_to_local', SecretsDecryptToLocalCommand::class)
|
278 | 277 | ->args([
|
279 | 278 | service('secrets.vault'),
|
280 |
| - service('secrets.local_vault')->ignoreOnInvalid() |
| 279 | + service('secrets.local_vault')->ignoreOnInvalid(), |
281 | 280 | ])
|
282 | 281 | ->tag('console.command', ['command' => 'secrets:decrypt-to-local'])
|
283 | 282 |
|
284 | 283 | ->set('console.command.secrets_encrypt_from_local', SecretsEncryptFromLocalCommand::class)
|
285 | 284 | ->args([
|
286 | 285 | service('secrets.vault'),
|
287 |
| - service('secrets.local_vault') |
| 286 | + service('secrets.local_vault'), |
288 | 287 | ])
|
289 | 288 | ->tag('console.command', ['command' => 'secrets:encrypt-from-local'])
|
290 | 289 | ;
|
|
0 commit comments