You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… the application (xabbuh)
This PR was submitted for the 2.2 branch but it was merged into the master branch instead (closes#8626).
Discussion
----------
[Console] pass command name automatically if required by the application
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #8625
| License | MIT
| Doc PR |
Commits
-------
50c8050 [Console] pass command name automatically if required by the application
The default input definition of the Console Component requires a
command
argument (s. Symfony\Component\Console\Application::getDefaultInputDefinition()). When you try to execute a command which has no arguments using theCommandTester
you have to pass acommand
argument (with an arbitrary value) (s. example Gist). Otherwise, you receive aRuntimeException
(see also symfony/symfony-docs#2870):The text was updated successfully, but these errors were encountered: