Метод |
Описание |
|
addMap ( string $prefix, array | string $paths, boolean $prepend = false ) |
Registers a set of PSR-4 directories for a given namespace, either
appending or prefixing to the ones previously set for this namespace. |
|
findFile ( string $class ) : string | false |
Finds the path to the file where the class is defined. |
|
getFallbackDirs ( ) : array |
Returns the list of fall=back directories |
|
getInstance ( ) : Autoloader |
|
|
getPrefixes ( ) : array |
Returns the prefix to directory map |
|
hasMap ( string $prefix ) : boolean |
Does the autoloader have a map for the specified prefix? |
|
loadClass ( string $class ) : boolean | null |
Loads the given class or interface. |
|
register ( boolean $prepend = false ) : void |
Registers this instance as an autoloader. |
|
setMap ( string $prefix, array | string $paths ) : void |
Registers a set of PSR-4 directories for a given namespace,
replacing any others previously set for this namespace. |
|
unregister ( ) : void |
Unregisters this instance as an autoloader. |
|