getServiceManager()->register( AssessmentTestXmlFactoryInterface::SERVICE_ID, new AssessmentTestXmlFactory() ); } /** * @param Schema $schema * * @throws InvalidServiceManagerException */ public function down(Schema $schema): void { $this->getServiceManager()->unregister(AssessmentTestXmlFactoryInterface::SERVICE_ID); } }