Merge branch 'romainneutron-fix-1640' into 3.8

This commit is contained in:
Nicolas Le Goff
2013-12-26 16:36:15 +01:00

View File

@@ -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;
}) })
); );
}
} }
} }