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');