Skip to content

Commit c714b66

Browse files
committed
Update usage example in ArrayInput doc block.
Make the ArrayInput doc block example more self-explanatory and less misleading. Show the common use case of having `command`, and replace the confusing `name` argument with something more arbitrary.
1 parent 59142c1 commit c714b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Input/ArrayInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* Usage:
2121
*
22-
* $input = new ArrayInput(['name' => 'foo', '--bar' => 'foobar']);
22+
* $input = new ArrayInput(['command' => 'foo:bar', 'foo' => 'bar', '--bar' => 'foobar']);
2323
*
2424
* @author Fabien Potencier <fabien@symfony.com>
2525
*/

0 commit comments

Comments
 (0)