Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($options=null) | |
setOptions ($options) | |
registerAutoloadMap ($map) | |
registerAutoloadMaps ($locations) | |
getAutoloadMap () | |
autoload ($class) | |
register () | |
Static Public Member Functions | |
static | realPharPath ($path) |
static | concatPharParts ($part) |
static | resolvePharParentPath ($value, $key, &$parts) |
Protected Member Functions | |
loadMapFromFile ($location) | |
Protected Attributes | |
$mapsLoaded = array() | |
$map = array() | |
Definition at line 33 of file ClassMapAutoloader.php.
__construct | ( | $options = null | ) |
Constructor
Create a new instance, and optionally configure the autoloader.
null | array | Traversable | $options |
Implements Zend_Loader_SplAutoloader.
Definition at line 55 of file ClassMapAutoloader.php.
autoload | ( | $class | ) |
Defined by Autoloadable
string | $class |
Implements Zend_Loader_SplAutoloader.
Definition at line 145 of file ClassMapAutoloader.php.
|
static |
Helper callback for filtering phar paths
string | $part |
Definition at line 227 of file ClassMapAutoloader.php.
getAutoloadMap | ( | ) |
|
protected |
Load a map from a file
If the map has been previously loaded, returns the current instance; otherwise, returns whatever was returned by calling include() on the location.
string | $location |
Zend_Loader_Exception_InvalidArgumentException | for nonexistent locations |
Definition at line 177 of file ClassMapAutoloader.php.
|
static |
Resolve the real_path() to a file within a phar.
string | $path |
Definition at line 205 of file ClassMapAutoloader.php.
register | ( | ) |
Register the autoloader with spl_autoload registry
Implements Zend_Loader_SplAutoloader.
Definition at line 157 of file ClassMapAutoloader.php.
registerAutoloadMap | ( | $map | ) |
Register an autoload map
An autoload map may be either an associative array, or a file returning an associative array.
An autoload map should be an associative array containing classname/file pairs.
string | array | $location |
Definition at line 88 of file ClassMapAutoloader.php.
registerAutoloadMaps | ( | $locations | ) |
Register many autoload maps at once
array | $locations |
Definition at line 117 of file ClassMapAutoloader.php.
|
static |
Helper callback to resolve a parent path in a Phar archive
string | $value | |
int | $key | |
array | $parts |
Definition at line 240 of file ClassMapAutoloader.php.
setOptions | ( | $options | ) |
Configure the autoloader
Proxies to registerAutoloadMaps().
array | Traversable | $options |
Implements Zend_Loader_SplAutoloader.
Definition at line 70 of file ClassMapAutoloader.php.
|
protected |
Definition at line 45 of file ClassMapAutoloader.php.
|
protected |
Definition at line 39 of file ClassMapAutoloader.php.