mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix API plugin route initialization and remove odd syntax
This commit is contained in:
@@ -20,7 +20,7 @@ class SetupMiddlewareProvider implements ServiceProviderInterface
|
||||
{
|
||||
Assertion::isInstanceOf($app, \Alchemy\Phrasea\Application::class);
|
||||
|
||||
$app['setup.validate-config'] = $app->share($app->protect(function (Request $request) use ($app) {
|
||||
$app['setup.validate-config'] = $app->protect(function (Request $request) use ($app) {
|
||||
if (0 === strpos($request->getPathInfo(), '/setup')) {
|
||||
if (!$app['phraseanet.configuration-tester']->isInstalled()) {
|
||||
if (!$app['phraseanet.configuration-tester']->isBlank()) {
|
||||
@@ -36,7 +36,7 @@ class SetupMiddlewareProvider implements ServiceProviderInterface
|
||||
$app['firewall']->requireSetup();
|
||||
}
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user