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); // $firewall = $this->getFirewall($app); // $controllers->before(function () use ($firewall) { // $firewall->requireRight(\ACL::CANMODIFRECORD); // }); /** @uses ThesaurusController::dropRecordsAction() */ $controllers->get('/droprecords', 'controller.prod.thesaurus:dropRecordsAction'); return $controllers; } }