Свойство | Тип | Описание | |
---|---|---|---|
$_add | string | Method name for adding a set of PSR-0 directories. | |
$_addPsr4 | string | Method name for adding a set of PSR-4 directories. | |
$_cachePath | string | Cache path. If false the caching is not enable. | |
$_exclude | array | Namespaces/classes which must not be patched. | |
$_findFile | string | Method name for finding files on original autoloader. | |
$_getPrefixes | string | Method name for adding a set of PSR-0 directories. | |
$_getPrefixesPsr4 | string | Method name for adding a set of PSR-4 directories. | |
$_include | array | Allowed namespaces/classes for being patched (if empty, mean all is allowed). | |
$_interceptor | array | Overrided loader reference. | |
$_loadClass | string | Method name for loading a class. | |
$_originalLoader | array | The patched loader reference. | |
$_patchers | object | The patchers container. | |
$_watched | integer | Additionnal watched files. | |
$_watchedTimestamp | integer | Most recent modification timestamps of the watched files. |
Метод | Описание | |
---|---|---|
__call ( $method, $params ) : mixed | Delegates call to original autoloader | |
__construct ( array $options = [] ) | Constructs | |
allowed ( string $class ) : boolean | Checks if a class is allowed to be patched. | |
cache ( string $file, string $content, $timestamp = null ) : string | Cache helper. | |
cachePath ( ) : string | Returns the cache path. | |
cached ( string $file ) : string | boolean | Gets a cached file path. | |
clearCache ( ) | Clear the cache. | |
composer ( ) : mixed | Look for the composer autoloader. | |
findFile ( string $class ) : string | false | Finds the path to the file where the class is defined. | |
findPath ( string $namespace, boolean $forceDir = false ) : string | null | Returns the path of a namespace or fully namespaced class name. | |
getPrefixes ( ) : array | Returns both PSR-0 & PSR-4 prefixes and related paths. | |
instance ( ) : object | null | Returns the interceptor autoloader instance. | |
load ( $interceptor = null ) : boolean | Loads an interceptor autoloader. | |
loadClass ( string $class ) : boolean | null | Loads the given class or interface. | |
loadFile ( $filepath ) : boolean | Loads a file. | |
loadFiles ( $files ) | Manualy load files. | |
loader ( ) : array | Returns the interceptor autoload function. | |
originalInstance ( ) : array | Returns the patched autoloader instance. | |
originalLoader ( ) : array | Returns the patched autoload function. | |
patch ( array $options = [] ) | Patch the autoloader to be intercepted by the current autoloader. | |
patchable ( string $class ) : boolean | Checks if a class can be patched or not. | |
patchers ( ) : mixed | Returns the patchers container. | |
refreshWatched ( ) | Refresh watched file timestamps | |
unpatch ( ) | Restore the original autoloader behavior. | |
unwatch ( $files ) | Unwatch a watched file | |
watch ( $files ) | Sets some file to watch. | |
watched ( ) : The | Returns watched files |
Метод | Описание | |
---|---|---|
_path ( string $path, boolean $forceDir ) : string | null | Build full path according to a root path. |
public __construct ( array $options = [] ) | ||
$options | array | Options for the constructor. |
public getPrefixes ( ) : array | ||
Результат | array |
public originalInstance ( ) : array | ||
Результат | array |
public originalLoader ( ) : array | ||
Результат | array |
public static unpatch ( ) |
public unwatch ( $files ) | ||
$files | The array of file paths to unwatch. |
public watch ( $files ) | ||
$files | The array of file paths to watch. |
public watched ( ) : The | ||
Результат | The | array of wateched file paths. |
protected string $_add | ||
Результат | string |
protected string $_addPsr4 | ||
Результат | string |
protected string $_cachePath | ||
Результат | string |
protected array $_exclude | ||
Результат | array |
protected string $_findFile | ||
Результат | string |
protected string $_getPrefixes | ||
Результат | string |
protected string $_getPrefixesPsr4 | ||
Результат | string |
protected array $_include | ||
Результат | array |
protected static array $_interceptor | ||
Результат | array |
protected string $_loadClass | ||
Результат | string |
protected array $_originalLoader | ||
Результат | array |
protected int $_watchedTimestamp | ||
Результат | integer |