8000 minor #5341 fixed typo and added additional hit for NullOutput() (kul… · symfony/symfony-docs@0376f05 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0376f05

Browse files
committed
minor #5341 fixed typo and added additional hit for NullOutput() (kuldipem)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #5341). Discussion ---------- fixed typo and added additional hit for NullOutput() Commits ------- 5bc75d4 fixed typo and added additional hit for NullOutput()
2 parents 9fb296d + 5bc75d4 commit 0376f05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cookbook/console/command_in_controller.rst

Lines changed: 4 additions & 3 deletions
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)
0