package | Zend_Loader |
---|---|
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
factory(array|\Traversable $options = null
) : void
Options should be an array or Traversable object of the following structure:
array(
'
The factory will then loop through and instantiate each autoloader with the specified options, and register each with the spl_autoloader.
You may retrieve the concrete autoloader instances later using \getRegisteredAutoloaders().
Note that the class names must be resolvable on the include_path or via the Zend library, using PSR-0 rules (unless the class has already been loaded).
array
\Traversable
(optional) options to use. Defaults to Zend_Loader_StandardAutoloader
\Zend_Loader_Exception_InvalidArgumentException |
for invalid options |
---|---|
\Zend_Loader_Exception_InvalidArgumentException |
for unloadable autoloader classes |
getRegisteredAutoloader(string $class) : \Zend_Loader_SplAutoloader
string
\Zend_Loader_Exception_InvalidArgumentException |
for non-registered class |
---|
\Zend_Loader_SplAutoloader
getRegisteredAutoloaders() : array
Returns an array of autoloader instances.
array
unregisterAutoloader(string $autoloaderClass) : boolean
string
boolean
unregisterAutoloaders() : void
This will NOT unregister autoloaders registered outside of the fctory.
getStandardAutoloader() : \Zend_Loader_SplAutoloader
Used to attempt to resolve autoloader classes, using the StandardAutoloader. The instance is marked as a fallback autoloader, to allow resolving autoloaders not under the "Zend" or "Zend" namespaces.
\Zend_Loader_SplAutoloader
$loaders : array
array()
$standardAutoloader : \Zend_Loader_StandardAutoloader
CLASS_MAP_AUTOLOADER = 'Zend_Loader_ClassMapAutoloader'
STANDARD_AUTOLOADER = 'Zend_Loader_StandardAutoloader'