getServiceManager()->register( ClassMetadataSearcherProxy::SERVICE_ID, new ClassMetadataSearcherProxy( [ ClassMetadataSearcherProxy::OPTION_ACTIVE_SEARCHER => ClassMetadataService::SERVICE_ID, ] ) ); } public function down(Schema $schema): void { $this->getServiceManager()->unregister(ClassMetadataSearcherProxy::SERVICE_ID); } }