PSR-0 compliant autoloader
Allows autoloading both namespaced and vendor-prefixed classes. Class lookups are performed on the filesystem. If a class file for the referenced class is not found, a PHP warning will be raised by include().
Configure autoloader
Allows specifying both “namespace” and “prefix” pairs, using the following structure: <code> array(
- ‘namespaces’ => array(
- ‘Zend’ => ‘/path/to/Zend/library’, ‘Doctrine’ => ‘/path/to/Doctrine/library’,
), ‘prefixes’ => array(
‘Phly_‘ => ‘/path/to/Phly/library’,), ‘fallback_autoloader’ => true,
) </code>
Parameters: | array|Traversable – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | StandardAutoloader |
Set flag indicating fallback autoloader status
Parameters: | bool – |
---|---|
Return type: | StandardAutoloader |
Is this autoloader acting as a fallback autoloader?
Return type: | bool |
---|
Register a namespace/directory pair
Parameters: |
|
---|---|
Return type: | StandardAutoloader |
Register many namespace/directory pairs at once
Parameters: | array – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | StandardAutoloader |
Register a prefix/directory pair
Parameters: |
|
---|---|
Return type: | StandardAutoloader |
Register many namespace/directory pairs at once
Parameters: | array – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | StandardAutoloader |
Defined by Autoloadable; autoload a class
Parameters: | string – |
---|---|
Return type: | false|string |
Register the autoloader with spl_autoload
Return type: | void |
---|
Transform the class name to a filename
Parameters: |
|
---|---|
Return type: | string |