category ZendX
package ZendX_Loader
copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Factory for autoloaders

factory(array | \Traversable $options) : void

Options should be an array or Traversable object of the following structure:

array(
    '' => $autoloaderOptions,
)

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).

Parameters

$options

array\Traversable

Exceptions

\Exception\InvalidArgumentException for invalid options
\Exception\InvalidArgumentException for unloadable autoloader classes
\Exception\DomainException for autoloader classes not implementing SplAutoloader

Get an list of all autoloaders registered with the factory

getRegisteredAutoloaders() : array

Returns an array of autoloader instances.

Returns

array

Get an instance of the standard autoloader

getStandardAutoloader() : \ZendX_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 "ZendX" namespaces.

Returns

Not meant to be instantiable

__construct() : void

 Properties

 

All autoloaders registered using the factory

$loaders : array

 

StandardAutoloader instance for resolving autoloader classes via the include_path

$standardAutoloader : \ZendX_Loader_StandardAutoloader