From 2518cf6387ee3284d44d05fec2106b1adbead270 Mon Sep 17 00:00:00 2001 From: Rick Burgess Date: Mon, 28 Nov 2016 15:50:13 +0000 Subject: [PATCH 1/2] adding the namespace for ArrayInput Makes the documentation a little cleaner, easier to copy --- console/calling_commands.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console/calling_commands.rst b/console/calling_commands.rst index 92a0e73ae4f..50dac45953d 100644 --- a/console/calling_commands.rst +++ b/console/calling_commands.rst @@ -10,6 +10,9 @@ generating Doctrine2 proxies, dumping Assetic assets, ...). Calling a command from another one is straightforward:: + use Symfony\Component\Console\Input\ArrayInput + // ... + protected function execute(InputInterface $input, OutputInterface $output) { $command = $this->getApplication()->find('demo:greet'); From f8633b2c09799106678b95b02601a27010c30b31 Mon Sep 17 00:00:00 2001 From: Rick Burgess Date: Wed, 30 Nov 2016 11:33:14 +0000 Subject: [PATCH 2/2] Added missing semicolon. --- console/calling_commands.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/calling_commands.rst b/console/calling_commands.rst index 50dac45953d..78759b70947 100644 --- a/console/calling_commands.rst +++ b/console/calling_commands.rst @@ -10,7 +10,7 @@ generating Doctrine2 proxies, dumping Assetic assets, ...). Calling a command from another one is straightforward:: - use Symfony\Component\Console\Input\ArrayInput + use Symfony\Component\Console\Input\ArrayInput; // ... protected function execute(InputInterface $input, OutputInterface $output)