share(function (PhraseaApplication $app) { return (new ThesaurusController($app)) ->setDataboxLoggerLocator($app['phraseanet.logger']) ->setDispatcher($app['dispatcher']) ->setFileSystemLocator(new LazyLocator($app, 'filesystem')) ; }); } public function boot(Application $app) { // no-op } public function connect(Application $app) { $controllers = $this->createAuthenticatedCollection($app); /** @uses ThesaurusController::dropRecordsAction() */ $controllers->get('/droprecords', 'controller.prod.thesaurus:dropRecordsAction'); return $controllers; } }