From 7d048cf7cfa05395388bb9873e735265daa6de37 Mon Sep 17 00:00:00 2001 From: KULDIP PIPALIYA Date: Sat, 30 May 2015 18:37:10 +0530 Subject: [PATCH 1/3] fixed typo --- cookbook/console/command_in_controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/console/command_in_controller.rst b/cookbook/console/command_in_controller.rst index 36a7d1e79a9..73332b52b77 100644 --- a/cookbook/console/command_in_controller.rst +++ b/cookbook/console/command_in_controller.rst @@ -45,7 +45,7 @@ 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); From b49b683d12ad5a44d7701a5b0815f505a98d480d Mon Sep 17 00:00:00 2001 From: KULDIP PIPALIYA Date: Sat, 30 May 2015 18:53:52 +0530 Subject: [PATCH 2/3] Update command_in_controller.rst --- cookbook/console/command_in_controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/console/command_in_controller.rst b/cookbook/console/command_in_controller.rst index 73332b52b77..32fd6c0da61 100644 --- a/cookbook/console/command_in_controller.rst +++ b/cookbook/console/command_in_controller.rst @@ -49,7 +49,7 @@ Run this command from inside your controller via:: $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($content); From ca5a462d7c903678fc7f1296ad550b39e24875fb Mon Sep 17 00:00:00 2001 From: KULDIP PIPALIYA Date: Sat, 30 May 2015 18:57:43 +0530 Subject: [PATCH 3/3] Update command_in_controller.rst --- cookbook/console/command_in_controller.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/console/command_in_controller.rst b/cookbook/console/command_in_controller.rst index 32fd6c0da61..1b4081c4e3d 100644 --- a/cookbook/console/command_in_controller.rst +++ b/cookbook/console/command_in_controller.rst @@ -51,7 +51,8 @@ Run this command from inside your controller via:: // return the output, don't use if you used NullOutput() $content = $output->fetch(); - + + // return new Response(""), if you used NullOutput() return new Response($content); } }