Plugin class locator interface
Constructor
| Parameters: | null|array|Traversable – If provided, seeds the loader with a map |
|---|
Add a static map of plugins
A null value will clear the static map.
| Parameters: | null|array|Traversable – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | void |
Register a class to a given short name
| Parameters: |
|
|---|---|
| Return type: | PluginClassLoader |
Register many plugins at once
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.
| Parameters: | string|array|Traversable – |
|---|---|
| Return type: | PluginClassLoader |
| Throws : | ExceptionInvalidArgumentException |
Unregister a short name lookup
| Parameters: | mixed – |
|---|---|
| Return type: | PluginClassLoader |
Get a list of all registered plugins
| Return type: | array|Traversable |
|---|
Whether or not a plugin by a specific name has been registered
| Parameters: | string – |
|---|---|
| Return type: | bool |
Return full class name for a named helper
| Parameters: | string – |
|---|---|
| Return type: | string|false |
Load a helper via the name provided
| Parameters: | string – |
|---|---|
| Return type: | string|false |