From 2b07e5d37d2c71982951835411c774a9a18de24e Mon Sep 17 00:00:00 2001 From: Daniel Santana Date: Wed, 23 Jul 2014 12:02:03 -0400 Subject: [PATCH] $this->request replaced by $request Using $this->request it does not work one the $request is being injected --- quick_tour/the_controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick_tour/the_controller.rst b/quick_tour/the_controller.rst index edb5124faaa..9b1947d29db 100644 --- a/quick_tour/the_controller.rst +++ b/quick_tour/the_controller.rst @@ -148,7 +148,7 @@ from any controller:: public function indexAction(Request $request) { - $session = $this->request->getSession(); + $session = $request->getSession(); // store an attribute for reuse during a later user request $session->set('foo', 'bar');