$this->request replaced by $request

Using $this->request it does not work
one the $request is being injected
bug #4048 $this->request replaced by $request (danielsan)

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