|
| validate ($plugin) |
| Validate a plugin (v3)
|
|
| validatePlugin ($plugin) |
| Validate a plugin (v2)
|
|
| __construct ($configInstanceOrParentLocator=null, array $config=[]) |
| Constructor.
|
|
| configure (array $config) |
| Override configure() to validate service instances.
|
|
| get ($name, array $options=null) |
|
|
|
| validate ($instance) |
| Validate an instance.- Parameters
-
- Returns
- void
- Exceptions
-
InvalidServiceException | If created instance does not respect the constraint on type imposed by the plugin manager |
ContainerException | if any other error occurs |
|
|
| setServiceLocator (ContainerInterface $container) |
| Implemented for backwards compatibility only.
|
|
| __construct (array $config=[]) |
| Constructor.
|
|
| getServiceLocator () |
| Implemented for backwards compatibility with previous plugin managers only.
|
|
| get ($name) |
|
|
|
| build ($name, array $options=null) |
| Build a service by its name, using optional options (such services are NEVER cached).- Parameters
-
string | $name | |
null | array | $options | |
- Returns
- mixed
- Exceptions
-
Exception\ServiceNotFoundException | If no factory/abstract factory could be found to create the instance. |
Exception\ServiceNotCreatedException | If factory/delegator fails to create the instance. |
ContainerException | if any other error occurs |
|
|
| has ($name) |
|
|
|
| setAllowOverride ($flag) |
| Indicate whether or not the instance is immutable.
|
|
| getAllowOverride () |
| Retrieve the flag indicating immutability status.
|
|
| configure (array $config) |
| Configure the service manager.
|
|
| setAlias ($alias, $target) |
| Add an alias.
|
|
| setInvokableClass ($name, $class=null) |
| Add an invokable class mapping.
|
|
| setFactory ($name, $factory) |
| Specify a factory for a given service name.
|
|
| mapLazyService ($name, $class=null) |
| Create a lazy service mapping to a class.
|
|
| addAbstractFactory ($factory) |
| Add an abstract factory for resolving services.
|
|
| addDelegator ($name, $factory) |
| Add a delegator for a given service.
|
|
| addInitializer ($initializer) |
| Add an initializer.
|
|
| setService ($name, $service) |
| Map a service.
|
|
| setShared ($name, $flag) |
| Add a service sharing rule.
|
|
Plugin manager implementation for scrolling style adapters.
Enforces that adapters retrieved are instances of ScrollingStyle. Additionally, it registers a number of default adapters available.