Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($options=null) | |
setOptions ($options) | |
autoload ($class) | |
register () | |
Definition at line 31 of file SplAutoloader.php.
__construct | ( | $options = null | ) |
Constructor
Allow configuration of the autoloader via the constructor.
null | array | Traversable | $options |
Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.
autoload | ( | $class | ) |
Autoload a class
$class |
Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.
register | ( | ) |
Register the autoloader with spl_autoload registry
Typically, the body of this will simply be: spl_autoload_register(array($this, 'autoload'));
Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.
setOptions | ( | $options | ) |
Configure the autoloader
In most cases, $options should be either an associative array or Traversable object.
array | Traversable | $options |
Implemented in Zend_Loader_StandardAutoloader, and Zend_Loader_ClassMapAutoloader.