getExtension(); $config = $extension->getConfig('qtiCreator'); $config['perInteractionRp'] = false; $extension->setConfig('qtiCreator', $config); } /** * @param Schema $schema */ public function down(Schema $schema): void { $extension = $this->getExtension(); $config = $extension->getConfig('qtiCreator'); if (array_key_exists('perInteractionRp', $config)) { unset($config['perInteractionRp']); } $extension->setConfig('qtiCreator', $config); } /** * @throws ExtensionException * * @return Extension */ private function getExtension(): Extension { /** @var ExtensionsManager $extensionManager */ $extensionManager = $this->getServiceLocator()->get(ExtensionsManager::SERVICE_ID); return $extensionManager->getExtensionById('taoQtiItem'); } }