getServiceLocator()->get(MetadataService::SERVICE_ID)->getImporter(); $importer->register(MetadataImporter::EXTRACTOR_KEY, GenericLomManifestClassificationExtractor::class); $importer->register(MetadataImporter::INJECTOR_KEY, GenericLomOntologyClassificationInjector::class); /** @var MetadataExporter $exporter */ $exporter = $this->getServiceLocator()->get(MetadataService::SERVICE_ID)->getExporter(); $exporter->register(MetadataExporter::EXTRACTOR_KEY, GenericLomOntologyClassificationExtractor::class); $exporter->register(MetadataExporter::INJECTOR_KEY, LomInjector::class); return \common_report_Report::createSuccess('Metadata Service updated.'); } }