Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426559f commit 81aead2Copy full SHA for 81aead2
src/Symfony/Component/Console/Tester/CommandTester.php
@@ -55,6 +55,18 @@ public function __construct(Command $command)
55
*/
56
public function execute(array $input, array $options = array())
57
{
58
+ // set the command name automatically if the application requires
59
+ // this argument and no command name was passed
60
+ if (!isset($input['command'])) {
61
+ $application = $this->command->getApplication();
62
+ if (null !== $application) {
63
+ $definition = $application->getDefinition();
64
+ if ($definition->hasArgument('command')) {
65
+ $input['command'] = $this->command->getName();
66
+ }
67
68
69
+
70
$this->input = new ArrayInput($input);
71
if (isset($options['interactive'])) {
72
$this->input->setInteractive($options['interactive']);
0 commit comments