Update controllers

This commit is contained in:
Romain Neutron
2012-09-21 12:42:32 +02:00
parent 6fbc9647c5
commit abc4d81521
41 changed files with 910 additions and 624 deletions

View File

@@ -29,8 +29,13 @@ class Dashboard implements ControllerProviderInterface
$controllers = $app['controllers_factory'];
$controllers->before(function(Request $request) use ($app) {
return $app['firewall']->requireAdmin($app);
});
$response = $app['firewall']->requireAdmin();
if ($response instanceof Response) {
return $response;
}
});
/**
* Get admin dashboard