Skip to content

Commit

Permalink
minor symfony#12652 remove 'command' from execute argument (aldenw)
Browse files Browse the repository at this point in the history
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes symfony#12652).

Discussion
----------

remove 'command' from execute argument

Including the 'command' argument triggers an exception, "Symfony\Component\Console\Exception\InvalidArgumentException : The "command" argument does not exist.", needs to be removed.

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).

-->

Commits
-------

9030c6b remove 'command' from execute argument
  • Loading branch information
wouterj committed Nov 23, 2019
2 parents d7adc5a + 9030c6b commit 6c67c6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,6 @@ console::
$command = $application->find('app:create-user');
$commandTester = new CommandTester($command);
$commandTester->execute([
'command' => $command->getName(),

// pass arguments to the helper
'username' => 'Wouter',

Expand Down

0 comments on commit 6c67c6e

Please sign in to comment.