28require_once __DIR__ .
'/../autoload.php';
56 $lowerClass = strtolower( $className );
58 if ( self::$autoloadLocalClassesLower ===
null ) {
62 if ( isset( self::$autoloadLocalClassesLower[$lowerClass] ) ) {
63 if ( function_exists(
'wfDebugLog' ) ) {
64 wfDebugLog(
'autoloader',
"Class {$className} was loaded using incorrect case" );
66 $filename = self::$autoloadLocalClassesLower[$lowerClass];
76 if ( substr( $filename, 0, 1 ) !=
'/' && substr( $filename, 1, 1 ) !=
':' ) {
78 $filename =
"$IP/$filename";
89 self::$autoloadLocalClassesLower =
null;
93spl_autoload_register( [
'AutoLoader',
'autoload' ] );
$wgAutoloadAttemptLowercase
Switch controlling legacy case-insensitive classloading.
$wgAutoloadClasses
Array mapping class names to filenames, for autoloading.
wfDebugLog( $logGroup, $text, $dest='all', array $context=[])
Send a line to a supplementary debug log file, if configured, or main debug log if not.
global $wgAutoloadLocalClasses
Locations of core classes Extension classes are specified with $wgAutoloadClasses This array is a glo...
static $autoloadLocalClassesLower
static autoload( $className)
autoload - take a class name and attempt to load it
static resetAutoloadLocalClassesLower()
Method to clear the protected class property $autoloadLocalClassesLower.