diff --git a/console/calling_commands.rst b/console/calling_commands.rst index 92a0e73ae4f..78759b70947 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');