28require_once __DIR__ .
'/../autoload.php';
64 if ( self::$autoloadLocalClassesLower ===
null ) {
68 if (
isset( self::$autoloadLocalClassesLower[$lowerClass] ) ) {
70 wfDebugLog(
'autoloader',
"Class {$className} was loaded using incorrect case" );
72 $filename = self::$autoloadLocalClassesLower[
$lowerClass];
76 if ( !$filename &&
strpos( $className,
'\\' ) !==
false ) {
79 while (
false !== $pos =
strrpos( $prefix,
'\\' ) ) {
81 $prefix =
substr( $className, 0, $pos + 1 );
82 if (
isset( self::$psr4Namespaces[$prefix] ) ) {
83 $relativeClass =
substr( $className, $pos + 1 );
85 $file = self::$psr4Namespaces[$prefix] .
'/' .
94 $prefix =
rtrim( $prefix,
'\\' );
104 if (
substr( $filename, 0, 1 ) !=
'/' &&
substr( $filename, 1, 1 ) !=
':' ) {
106 $filename =
"$IP/$filename";
117 self::$autoloadLocalClassesLower =
null;
132 'MediaWiki\\Auth\\' => __DIR__ .
'/auth/',
133 'MediaWiki\\Block\\' => __DIR__ .
'/block/',
134 'MediaWiki\\Edit\\' => __DIR__ .
'/edit/',
135 'MediaWiki\\EditPage\\' => __DIR__ .
'/editpage/',
136 'MediaWiki\\Linker\\' => __DIR__ .
'/linker/',
137 'MediaWiki\\Permissions\\' => __DIR__ .
'/Permissions/',
138 'MediaWiki\\Preferences\\' => __DIR__ .
'/preferences/',
139 'MediaWiki\\Revision\\' => __DIR__ .
'/Revision/',
140 'MediaWiki\\Session\\' => __DIR__ .
'/session/',
141 'MediaWiki\\Shell\\' => __DIR__ .
'/shell/',
142 'MediaWiki\\Sparql\\' => __DIR__ .
'/sparql/',
143 'MediaWiki\\Storage\\' => __DIR__ .
'/Storage/',
144 'MediaWiki\\Tidy\\' => __DIR__ .
'/tidy/',
145 'Wikimedia\\Services\\' => __DIR__ .
'/libs/services/',
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgAutoloadAttemptLowercase
Switch controlling legacy case-insensitive classloading.
wfDebugLog( $logGroup, $text, $dest='all', array $context=[])
Send a line to a supplementary debug log file, if configured, or main debug log if not.
$wgAutoloadClasses['ReplaceTextHooks']
global $wgAutoloadLocalClasses
Locations of core classes Extension classes are specified with $wgAutoloadClasses This array is a glo...
static getAutoloadNamespaces()
Get a mapping of namespace => file path The namespaces should follow the PSR-4 standard for autoloadi...
static $autoloadLocalClassesLower
static string[] $psr4Namespaces
static autoload( $className)
autoload - take a class name and attempt to load it
static resetAutoloadLocalClassesLower()
Method to clear the protected class property $autoloadLocalClassesLower.
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file