private function registerSettings() { $this->applicationFactory->registerObject('Settings', Settings::newFromGlobals($this->globalVars)); if (CompatibilityMode::extensionNotEnabled()) { CompatibilityMode::disableSemantics(); } }
/** * To disable Semantic MediaWiki's operational functionality * * @note This function can be used to temporary disable SMW but it is paramount * that after SMW is re-enabled to run `rebuildData.php` in order for data to * represent a state that mirrors the actual environment (deleted, moved pages * are not tracked when disabled). */ function disableSemantics() { CompatibilityMode::disableSemantics(); }