<?php
+use MediaWiki\MediaWikiServices;
+
/**
* ExtensionRegistry class
*
/**
* Version of the highest supported manifest version
*/
- const MANIFEST_VERSION = 1;
+ const MANIFEST_VERSION = 2;
/**
* Version of the oldest supported manifest version
// we don't want to fail here if $wgObjectCaches is not configured
// properly for APC setup
try {
- $this->cache = ObjectCache::getLocalServerInstance();
+ $this->cache = MediaWikiServices::getInstance()->getLocalServerObjectCache();
} catch ( MWException $e ) {
$this->cache = new EmptyBagOStuff();
}
foreach ( $info['defines'] as $name => $val ) {
define( $name, $val );
}
- foreach ( $info['callbacks'] as $cb ) {
- call_user_func( $cb );
- }
-
foreach ( $info['autoloaderPaths'] as $path ) {
require_once $path;
}
+ foreach ( $info['callbacks'] as $cb ) {
+ call_user_func( $cb );
+ }
$this->loaded += $info['credits'];
if ( $info['attributes'] ) {