*/ namespace oat\taoQtiTest\scripts\install; use oat\tao\model\ClientLibConfigRegistry; /** * Enables the guided navigation */ class SetGuidedNavigation extends \common_ext_action_InstallAction { /** * @param $params * @return \common_report_Report */ public function __invoke($params) { //set the allow flag to true $qtiTest = $this->getServiceManager()->get(\common_ext_ExtensionsManager::SERVICE_ID)->getExtensionById('taoQtiTest'); $config = $qtiTest->getConfig('testRunner'); $config = array_merge($config, [ 'guidedNavigation' => true ]); $qtiTest->setConfig('testRunner', $config); return new \common_report_Report( \common_report_Report::TYPE_SUCCESS, "Precaching configuration set." ); } }