interface ClassLoaderInterface in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/ClassLoader/ClassLoaderInterface.php \Drupal\xautoload\ClassLoader\ClassLoaderInterface
Behaves mostly like the Symfony ClassLoader classes.
Hierarchy
- interface \Drupal\xautoload\ClassLoader\ClassLoaderInterface
Expanded class hierarchy of ClassLoaderInterface
All classes that implement ClassLoaderInterface
2 files declare their use of ClassLoaderInterface
- ClassFinderInterface.php in lib/
ClassFinder/ ClassFinderInterface.php - XAutoloadUnitTestCase.php in lib/
Drupal/ xautoload/ Tests/ XAutoloadUnitTestCase.php
File
- lib/
ClassLoader/ ClassLoaderInterface.php, line 8
Namespace
Drupal\xautoload\ClassLoaderView source
interface ClassLoaderInterface {
/**
* Registers this instance as an autoloader.
*
* @param boolean $prepend
* If TRUE, the loader will be prepended. Otherwise, it will be appended.
*/
function register($prepend = FALSE);
/**
* Unregister this instance as an autoloader.
*/
function unregister();
/**
* Callback for class loading. This will include ("require") the file found.
*
* @param string $class
* The class to load.
*/
function loadClass($class);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ClassLoaderInterface:: |
function | Callback for class loading. This will include ("require") the file found. | 3 | |
ClassLoaderInterface:: |
function | Registers this instance as an autoloader. | 1 | |
ClassLoaderInterface:: |
function | Unregister this instance as an autoloader. | 1 |