@@ -88,7 +88,7 @@ if you want to know a bundle name, you can add this to your command::
8888
8989 // ... do something with the bundleName
9090
91- return Commande ::SUCCESS;
91+ return Command ::SUCCESS;
9292 }
9393
9494The user will be asked "Please enter the name of the bundle". They can type
@@ -124,7 +124,7 @@ from a predefined list::
124124
125125 // ... do something with the color
126126
127- return Commande ::SUCCESS;
127+ return Command ::SUCCESS;
128128 }
129129
130130The option which should be selected by default is provided with the third
@@ -162,7 +162,7 @@ this use :method:`Symfony\\Component\\Console\\Question\\ChoiceQuestion::setMult
162162 $colors = $helper->ask($input, $output, $question);
163163 $output->writeln('You have just selected: ' . implode(', ', $colors));
164164
165- return Commande ::SUCCESS;
165+ return Command ::SUCCESS;
166166 }
167167
168168Now, when the user enters ``1,2 ``, the result will be:
@@ -193,7 +193,7 @@ will be autocompleted as the user types::
193193
194194 // ... do something with the bundleName
195195
196- return Commande ::SUCCESS;
196+ return Command ::SUCCESS;
197197 }
198198
199199In more complex use cases, it may be necessary to generate suggestions on the
@@ -232,7 +232,7 @@ provide a callback function to dynamically generate suggestions::
232232
233233 // ... do something with the filePath
234234
235- return Commande ::SUCCESS;
235+ return Command ::SUCCESS;
236236 }
237237
238238Do not Trim the Answer
@@ -256,7 +256,7 @@ You can also specify if you want to not trim the answer by setting it directly w
256256
257257 // ... do something with the name
258258
259- return Commande ::SUCCESS;
259+ return Command ::SUCCESS;
260260 }
261261
262262Accept Multiline Answers
@@ -282,7 +282,7 @@ the response to a question should allow multiline answers by passing ``true`` to
282282
283283 // ... do something with the answer
284284
285- return Commande ::SUCCESS;
285+ return Command ::SUCCESS;
286286 }
287287
288288Multiline questions stop reading user input after receiving an end-of-transmission
@@ -310,7 +310,7 @@ convenient for passwords::
310310
311311 // ... do something with the password
312312
313- return Commande ::SUCCESS;
313+ return Command ::SUCCESS;
314314 }
315315
316316.. caution ::
@@ -342,7 +342,7 @@ convenient for passwords::
342342
343343 // ...
344344
345- return Commande ::SUCCESS;
345+ return Command ::SUCCESS;
346346 }
347347
348348Normalizing the Answer
@@ -373,7 +373,7 @@ method::
373373
374374 // ... do something with the bundleName
375375
376- return Commande ::SUCCESS;
376+ return Command ::SUCCESS;
377377 }
378378
379379.. caution ::
@@ -417,7 +417,7 @@ method::
417417
418418 // ... do something with the bundleName
419419
420- return Commande ::SUCCESS;
420+ return Command ::SUCCESS;
421421 }
422422
423423The ``$validator `` is a callback which handles the validation. It should
@@ -479,7 +479,7 @@ You can also use a validator with a hidden question::
479479
480480 // ... do something with the password
481481
482- return Commande ::SUCCESS;
482+ return Command ::SUCCESS;
483483 }
484484
485485Testing a Command that Expects Input
0 commit comments