Property | Type | Description | |
---|---|---|---|
$classmap | array | Class map array. | |
$fallback | boolean | Flag to make the autoloader the fallback autoloader or not | |
$prefixes | array | Array of available namespaces prefixes. | |
$suppress | boolean | Flag to suppress warnings |
Method | Description | |
---|---|---|
__construct ( boolean $self = true ) : Autoloader | Constructor | |
__invoke ( string $class ) : void | Invoke the class | |
factory ( boolean $self = true ) : Autoloader | Static method to instantiate the autoloader object | |
loadClassMap ( string $classmap ) : Autoloader | Load a class map file | |
register ( string $namespace, string $directory ) : Autoloader | Register a namespace and directory location with the autoloader | |
splAutoloadRegister ( boolean $suppress = true, boolean $fallback = false ) : Autoloader | Register the autoloader instance with the SPL |
public __construct ( boolean $self = true ) : Autoloader | ||
$self | boolean | |
return | Autoloader |
public static factory ( boolean $self = true ) : Autoloader | ||
$self | boolean | |
return | Autoloader |
public loadClassMap ( string $classmap ) : Autoloader | ||
$classmap | string | |
return | Autoloader |
public register ( string $namespace, string $directory ) : Autoloader | ||
$namespace | string | |
$directory | string | |
return | Autoloader |
public splAutoloadRegister ( boolean $suppress = true, boolean $fallback = false ) : Autoloader | ||
$suppress | boolean | |
$fallback | boolean | |
return | Autoloader |
protected bool $fallback | ||
return | boolean |
protected array $prefixes | ||
return | array |