Skip to content

Commit

Permalink
[9.x] Remove argument assignment for console (#44888)
Browse files Browse the repository at this point in the history
* Remove argument assignment for console

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
driesvints and StyleCIBot authored Nov 9, 2022
1 parent c3ed678 commit 7d53fbc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Illuminate/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
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;
Expand Down Expand Up @@ -94,14 +93,6 @@ public function run(InputInterface $input = null, OutputInterface $output = null
$input = $input ?: new ArgvInput
);

if (! is_null($commandName)) {
try {
$input->bind($this->find($commandName)->getDefinition());
} catch (ExceptionInterface) {
// ...
}
}

$this->events->dispatch(
new CommandStarting(
$commandName, $input, $output = $output ?: new BufferedConsoleOutput
Expand Down

0 comments on commit 7d53fbc

Please sign in to comment.