From e124ee65289077faa34fa935f85d0f6e00af68f3 Mon Sep 17 00:00:00 2001 From: Samuel Wicky Date: Mon, 13 Feb 2017 20:33:42 +0100 Subject: [PATCH 1/2] Use statement for InputOption added to example --- console/input.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console/input.rst b/console/input.rst index ea6cd477d9e..9e5788c4302 100644 --- a/console/input.rst +++ b/console/input.rst @@ -118,6 +118,9 @@ simply as a boolean flag without a value (e.g. ``--yell``). For example, add a new option to the command that can be used to specify how many times in a row the message should be printed:: + use Symfony\Component\Console\Input\InputOption; + // ... + $this // ... ->addOption( From d263735fef10d082c80310eb2ca96dc6ad4713c0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 14 Feb 2017 10:20:41 +0100 Subject: [PATCH 2/2] Minor tweak --- console/input.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/input.rst b/console/input.rst index 9e5788c4302..2b6252ec75b 100644 --- a/console/input.rst +++ b/console/input.rst @@ -118,8 +118,8 @@ simply as a boolean flag without a value (e.g. ``--yell``). For example, add a new option to the command that can be used to specify how many times in a row the message should be printed:: - use Symfony\Component\Console\Input\InputOption; // ... + use Symfony\Component\Console\Input\InputOption; $this // ...