Zend\Loader\ClassMapAutoloader
Class-map autoloader
Utilizes class-map files to lookup classfile locations.
Synopsis
class ClassMapAutoloader
implements
SplAutoloader
{
- // members
- protected array $mapsLoaded;
- protected array $map;
- // methods
- public void __construct()
- public ClassMapAutoloader setOptions()
- public ClassMapAutoloader registerAutoloadMap()
- public ClassMapAutoloader registerAutoloadMaps()
- public array getAutoloadMap()
- public void autoload()
- public void register()
- protected ClassMapAutoloader|mixed loadMapFromFile()
- public static string realPharPath()
Hierarchy
Implements
Members
protected
- $map
—
array
Class name/filename map - $mapsLoaded
—
array
Registry of map files that have already been loaded
Methods
protected
- loadMapFromFile() — Load a map from a file
public
- __construct() — Constructor
- autoload() — {@inheritDoc}
- getAutoloadMap() — Retrieve current autoload map
- realPharPath() — Resolve the real_path() to a file within a phar.
- register() — Register the autoloader with spl_autoload registry
- registerAutoloadMap() — Register an autoload map
- registerAutoloadMaps() — Register many autoload maps at once
- setOptions() — Configure the autoloader