__construct()
addStaticMap()
getClassName()
getIterator()
getRegisteredPlugins()
isLoaded()
load()
registerPlugin()
registerPlugins()
unregisterPlugin()
$plugins
$staticMap
Plugin class locator interface
__construct(null | array | \Traversable $map)
nullarray\Traversable
If provided, seeds the loader with a map
addStaticMap(null | array | \Traversable $map) : void
A null value will clear the static map.
nullarray\Traversable
\Zend\Loader\Exception\InvalidArgumentException |
---|
getClassName(string $name) : string | false
string
string
false
getRegisteredPlugins() : array | \Traversable
array
\Traversable
isLoaded(string $name) : bool
string
bool
load(string $name) : string | false
string
string
false
registerPlugin(string $shortName, string $className) : \Zend\Loader\PluginClassLoader
registerPlugins(string | array | \Traversable $map) : \Zend\Loader\PluginClassLoader
If $map is a string, assumes that the map is the class name of a Traversable object (likely a ShortNameLocator); it will then instantiate this class and use it to register plugins.
If $map is an array or Traversable object, it will iterate it to register plugin names/classes.
For all other arguments, or if the string $map is not a class or not a Traversable class, an exception will be raised.
stringarray\Traversable
\Zend\Loader\Exception\InvalidArgumentException |
---|
$plugins : array
$staticMap : array