getProxy(); $searchProxy->extendGenerisSearchWhiteList([ ConsumerService::CLASS_URI, ProviderService::CLASS_URI, ]); $this->getServiceManager()->register(SearchProxy::SERVICE_ID, $searchProxy); } public function down(Schema $schema): void { $searchProxy = $this->getProxy(); $searchProxy->removeFromGenerisSearchWhiteList([ ConsumerService::CLASS_URI, ProviderService::CLASS_URI, ]); $this->getServiceManager()->register(SearchProxy::SERVICE_ID, $searchProxy); } private function getProxy(): SearchProxy { return $this->getServiceManager()->get(SearchProxy::SERVICE_ID); } }