Remove inline redirection

This commit is contained in:
Romain Neutron
2012-07-24 19:13:21 +02:00
parent 5f25c7b190
commit a9bdeefcde
5 changed files with 88 additions and 76 deletions

View File

@@ -220,7 +220,7 @@ class WorkZone implements ControllerProviderInterface
if ($request->getRequestFormat() == 'json') {
return $app->json($data);
} else {
return new RedirectResponse('/');
return $app->redirect('/');
}
})->assert('sbas_id', '\d+')->assert('record_id', '\d+');