From 5bc75d4d515332ba6653140f4b01791e511dd6b5 Mon Sep 17 00:00:00 2001 From: KULDIP PIPALIYA Date: Sat, 30 May 2015 18:37:10 +0530 Subject: [PATCH] fixed typo and added additional hit for NullOutput() --- cookbook/console/command_in_controller.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cookbook/console/command_in_controller.rst b/cookbook/console/command_in_controller.rst index 36a7d1e79a9..1b4081c4e3d 100644 --- a/cookbook/console/command_in_controller.rst +++ b/cookbook/console/command_in_controller.rst @@ -45,13 +45,14 @@ Run this command from inside your controller via:: 'command' => 'swiftmailer:spool:send', '--message-limit' => $messages, )); - // our use NullOutput() if you don't need the outpu + // You can use NullOutput() if you don't need the output $output = new BufferedOutput(); $application->run($input, $output); - // return the output + // return the output, don't use if you used NullOutput() $content = $output->fetch(); - + + // return new Response(""), if you used NullOutput() return new Response($content); } }