AbstractPluginManager

Abstract plugin manager. Abstract PluginManagerInterface implementation providing: - creation context support. The constructor accepts the parent container instance, which is then used when creating instances. - plugin validation. Implementations may define the `$instanceOf` property to indicate what class types constitute valid plugins, omitting the requirement to define the `validate()` method. The implementation extends `ServiceManager`, thus providing the same set of capabilities as found in that implementation.
extends Zend\ServiceManager\ServiceManager implements Interop\Container\ContainerInterface , Psr\Container\ContainerInterface , Zend\ServiceManager\PluginManagerInterface , Zend\ServiceManager\ServiceLocatorInterface

Known subclasses

Omeka\Api\Adapter\Manager, Omeka\ServiceManager\AbstractPluginManager
Abstract
Open source code
Methods Summary
public
# __construct( null|\ConfigInterface|\ContainerInterface $configInstanceOrParentLocator = NULL, array $config = array ( ) )
Constructor. Sets the provided $parentLocator as the creation context for all factories; for $config, {@see \Zend\ServiceManager\ServiceManager::configure()} for details on its accepted structure.

Overrides

public
# configure( array $config )
Override configure() to validate service instances. If an instance passed in the `services` configuration is invalid for the plugin manager, this method will raise an InvalidServiceException. {@inheritDoc}

Overrides

public
# get( string $name , array $options = NULL )
public
# validate( $instance )
public
# setServiceLocator( Interop\Container\ContainerInterface $container )
Implemented for backwards compatibility only. Returns the creation context.

Deprecated


Methods inherited from Zend\ServiceManager\ServiceManager
__construct(), getServiceLocator(), get(), build(), has(), setAllowOverride(), getAllowOverride(), configure(), setAlias(), setInvokableClass(), setFactory(), mapLazyService(), addAbstractFactory(), addDelegator(), addInitializer(), setService(), setShared()
Properties Summary
protected bool $autoAddInvokableClass
Whether or not to auto-add a FQCN as an invokable if it exists.
# true
protected null|string $instanceOf
An object type that the created instance must be instanced of
# NULL
Properties inherited from Zend\ServiceManager\ServiceManager
$abstractFactories, $aliases, $allowOverride, $creationContext, $delegators, $factories, $initializers, $lazyServices, $services, $shared, $sharedByDefault, $configured