Skip to content

Commit

Permalink
use getRequest() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Girard committed Mar 17, 2014
1 parent 2a57ca7 commit a367f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controller/RestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RestController extends Controller
*/
public function listAction()
{
list($transUnits, $count) = $this->get('lexik_translation.data_grid.request_handler')->getPage($this->get('request'));
list($transUnits, $count) = $this->get('lexik_translation.data_grid.request_handler')->getPage($this->getRequest());

return $this->get('lexik_translation.data_grid.formatter')->createListResponse($transUnits, $count);
}
Expand All @@ -26,7 +26,7 @@ public function listAction()
*/
public function updateAction($id)
{
$request = $this->get('request');
$request = $this->getRequest();

if (!$request->isMethod('PUT')) {
throw $this->createNotFoundException('Invalid request method.');
Expand Down

0 comments on commit a367f36

Please sign in to comment.