We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fb296d commit 5bc75d4Copy full SHA for 5bc75d4
cookbook/console/command_in_controller.rst
@@ -45,13 +45,14 @@ Run this command from inside your controller via::
45
'command' => 'swiftmailer:spool:send',
46
'--message-limit' => $messages,
47
));
48
- // our use NullOutput() if you don't need the outpu
+ // You can use NullOutput() if you don't need the output
49
$output = new BufferedOutput();
50
$application->run($input, $output);
51
52
- // return the output
+ // return the output, don't use if you used NullOutput()
53
$content = $output->fetch();
54
-
+
55
+ // return new Response(""), if you used NullOutput()
56
return new Response($content);
57
}
58
0 commit comments