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 e7fbb60 commit e2caa7fCopy full SHA for e2caa7f
console/command_in_controller.rst
@@ -40,10 +40,12 @@ Run this command from inside your controller via::
40
$kernel = $this->get('kernel');
41
$application = new Application($kernel);
42
$application->setAutoExit(false);
43
-
+ // if your command define an argument (example: fooArgument)
44
+ // you can pass it in the array under ArrayInput
45
$input = new ArrayInput(array(
46
'command' => 'swiftmailer:spool:send',
47
'--message-limit' => $messages,
48
+ 'fooArgument' => 'barValue',
49
));
50
// You can use NullOutput() if you don't need the output
51
$output = new BufferedOutput();
0 commit comments