Skip to content

Commit 5bc75d4

Browse files
kuldipemwouterj
authored andcommitted
fixed typo and added additional hit for NullOutput()
1 parent 9fb296d commit 5bc75d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cookbook/console/command_in_controller.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ Run this command from inside your controller via::
4545
'command' => 'swiftmailer:spool:send',
4646
'--message-limit' => $messages,
4747
));
48-
// our use NullOutput() if you don't need the outpu
48+
// You can use NullOutput() if you don't need the output
4949
$output = new BufferedOutput();
5050
$application->run($input, $output);
5151

52-
// return the output
52+
// return the output, don't use if you used NullOutput()
5353
$content = $output->fetch();
54-
54+
55+
// return new Response(""), if you used NullOutput()
5556
return new Response($content);
5657
}
5758
}

0 commit comments

Comments
 (0)