Zend\Loader\AutoloaderFactory::factory
Factory for autoloaders
Options should be an array or Traversable object of the following structure: <code> array( '<autoloader class name>' => $autoloaderOptions, ) </code> 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 {@link 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).
Signature
public function factory([array|Traversable
$options = null] )
Parameters
$options
— object- (optional) options to use. Defaults to Zend\Loader\StandardAutoloader
Returns
- void
Errors/Exceptions
-
InvalidArgumentException
- for invalid options
-
InvalidArgumentException
- for unloadable autoloader classes
-
DomainException
- for autoloader classes not implementing SplAutoloader