Skip to content

Commit 15ac7d6

Browse files
committed
minor #7483 Use statement for InputOption added to example (soxyl, javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Use statement for InputOption added to example Hi, while reading in the docs today I was looking for the namespace of the `InputOption` class. Since it was missing on this page I added it. Sam Commits ------- d263735 Minor tweak e124ee6 Use statement for InputOption added to example
2 parents d9dd9d1 + d263735 commit 15ac7d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

console/input.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ simply as a boolean flag without a value (e.g. ``--yell``).
118118
For example, add a new option to the command that can be used to specify
119119
how many times in a row the message should be printed::
120120

121+
// ...
122+
use Symfony\Component\Console\Input\InputOption;
123+
121124
$this
122125
// ...
123126
->addOption(

0 commit comments

Comments
 (0)