Skip to content

Commit

Permalink
bug #4048 $this->request replaced by $request (danielsan)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4048).

Discussion
----------

$this->request replaced by $request

Using $this->request it does not work
one the $request is being injected

Commits
-------

b9b4e09 $this->request replaced by $request
  • Loading branch information
weaverryan committed Jul 29, 2014
2 parents b06ad60 + 2b07e5d commit 7901005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quick_tour/the_controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7901005

Please sign in to comment.