diff --git a/src/Illuminate/Console/Application.php b/src/Illuminate/Console/Application.php index 78a8c0468d74..826d06826855 100755 --- a/src/Illuminate/Console/Application.php +++ b/src/Illuminate/Console/Application.php @@ -13,6 +13,7 @@ use Symfony\Component\Console\Application as SymfonyApplication; use Symfony\Component\Console\Command\Command as SymfonyCommand; use Symfony\Component\Console\Exception\CommandNotFoundException; +use Symfony\Component\Console\Exception\ExceptionInterface; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputDefinition; @@ -93,6 +94,12 @@ public function run(InputInterface $input = null, OutputInterface $output = null $input = $input ?: new ArgvInput ); + try { + $input->bind($this->find($commandName)->getDefinition()); + } catch (ExceptionInterface) { + // ... + } + $this->events->dispatch( new CommandStarting( $commandName, $input, $output = $output ?: new BufferedConsoleOutput