use SMW\NamespaceManager; use SMW\ApplicationFactory; use SMW\Setup; if (!defined('MEDIAWIKI')) { die('Not an entry point.'); } /** * ExtensionRegistry only maps classes and functions after all extensions have * been queued from the LocalSettings.php resulting in DefaultSettings not being * loaded in-time. * * When changing the load order, please ensure that this function is run either * via Composer's autoloading or as part of your internal registration. */ SemanticMediaWiki::load(); /** * @codeCoverageIgnore */ class SemanticMediaWiki { /** * @since 2.5 * * @note It is expected that this function is loaded before LocalSettings.php * to ensure that settings and global functions are available by the time * the extension is activated. */ public static function load() { if (is_readable(__DIR__ . '/vendor/autoload.php')) {