MediaWiki  1.34.0
AutoLoader Class Reference

Locations of core classes Extension classes are specified with $wgAutoloadClasses This array is a global instead of a static member of AutoLoader to work around a bug in APC. More...

Static Public Member Functions

static autoload ( $className)
 autoload - take a class name and attempt to load it More...
 
static getAutoloadNamespaces ()
 Get a mapping of namespace => file path The namespaces should follow the PSR-4 standard for autoloading. More...
 
static resetAutoloadLocalClassesLower ()
 Method to clear the protected class property $autoloadLocalClassesLower. More...
 

Static Public Attributes

static string[] $psr4Namespaces = []
 

Static Protected Attributes

static $autoloadLocalClassesLower = null
 

Detailed Description

Locations of core classes Extension classes are specified with $wgAutoloadClasses This array is a global instead of a static member of AutoLoader to work around a bug in APC.

Definition at line 30 of file AutoLoader.php.

Member Function Documentation

◆ autoload()

static AutoLoader::autoload (   $className)
static

autoload - take a class name and attempt to load it

Parameters
string$classNameName of class we're looking for.

Definition at line 44 of file AutoLoader.php.

References $file, $IP, $wgAutoloadAttemptLowercase, $wgAutoloadClasses, $wgAutoloadLocalClasses, and wfDebugLog().

◆ getAutoloadNamespaces()

static AutoLoader::getAutoloadNamespaces ( )
static

Get a mapping of namespace => file path The namespaces should follow the PSR-4 standard for autoloading.

See also
http://www.php-fig.org/psr/psr-4/
Access:\n private Only public for usage in AutoloadGenerator
Since
1.31
Returns
string[]

Definition at line 130 of file AutoLoader.php.

◆ resetAutoloadLocalClassesLower()

static AutoLoader::resetAutoloadLocalClassesLower ( )
static

Method to clear the protected class property $autoloadLocalClassesLower.

Used in tests.

Definition at line 116 of file AutoLoader.php.

Member Data Documentation

◆ $autoloadLocalClassesLower

AutoLoader::$autoloadLocalClassesLower = null
staticprotected

Definition at line 31 of file AutoLoader.php.

◆ $psr4Namespaces

string [] AutoLoader::$psr4Namespaces = []
static
Access:\n private Only public for ExtensionRegistry
Namespace (ends with \) => Path (ends with /)

Definition at line 37 of file AutoLoader.php.

Referenced by ExtensionRegistry\exportAutoloadClassesAndNamespaces(), and ExtensionRegistry\exportExtractedData().


The documentation for this class was generated from the following file: