mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Merge branch 'romainneutron-fix-1640' into 3.8
This commit is contained in:
@@ -49,12 +49,14 @@ class SearchEngineServiceProvider implements ServiceProviderInterface
|
|||||||
|
|
||||||
public function boot(Application $app)
|
public function boot(Application $app)
|
||||||
{
|
{
|
||||||
$app['dispatcher'] = $app->share(
|
if ($app['phraseanet.configuration']->isSetup()) {
|
||||||
$app->extend('dispatcher', function ($dispatcher, Application $app) {
|
$app['dispatcher'] = $app->share(
|
||||||
$dispatcher->addSubscriber($app['phraseanet.SE.subscriber']);
|
$app->extend('dispatcher', function ($dispatcher, Application $app) {
|
||||||
|
$dispatcher->addSubscriber($app['phraseanet.SE.subscriber']);
|
||||||
|
|
||||||
return $dispatcher;
|
return $dispatcher;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user