mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Avoid exception driven logic
This commit is contained in:
@@ -30,9 +30,7 @@ class Query implements ControllerProviderInterface
|
||||
{
|
||||
$controllers = $app['controllers_factory'];
|
||||
|
||||
$controllers->before(function (Request $request) use ($app) {
|
||||
$app['firewall']->requireAuthentication();
|
||||
});
|
||||
$app['firewall']->addMandatoryAuthentication($controllers);
|
||||
|
||||
/**
|
||||
* Query Phraseanet
|
||||
|
Reference in New Issue
Block a user