| Fully Qualified Name: | Laminas\View\Helper\Navigation\PluginManager |
| Extends: | HelperPluginManager |
Plugin manager implementation for navigation helpers
Enforces that helpers retrieved are instances of Navigation\HelperInterface. Additionally, it registers a number of default helpers.
| Name | Description | Defined By |
|---|---|---|
| __construct() | PluginManager | |
| addAbstractFactory() | Add an abstract factory for resolving services. | ServiceManager |
| addDelegator() | Add a delegator for a given service. | ServiceManager |
| addInitializer() | Add an initializer. | ServiceManager |
| build() | {@inheritDoc} | ServiceManager |
| configure() | Configure the service manager | ServiceManager |
| get() | {@inheritDoc} | ServiceManager |
| getAllowOverride() | Retrieve the flag indicating immutability status. | ServiceManager |
| getRenderer() | Retrieve renderer instance | HelperPluginManager |
| getServiceLocator() | Implemented for backwards compatibility with previous plugin managers only. | ServiceManager |
| has() | {@inheritDoc} | ServiceManager |
| injectEventManager() | Inject a helper instance with the registered event manager | HelperPluginManager |
| injectRenderer() | Inject a helper instance with the registered renderer | HelperPluginManager |
| injectTranslator() | Inject a helper instance with the registered translator | HelperPluginManager |
| mapLazyService() | Create a lazy service mapping to a class. | ServiceManager |
| setAlias() | Add an alias. | ServiceManager |
| setAllowOverride() | Indicate whether or not the instance is immutable. | ServiceManager |
| setFactory() | Specify a factory for a given service name. | ServiceManager |
| setInvokableClass() | Add an invokable class mapping. | ServiceManager |
| setRenderer() | Set renderer | HelperPluginManager |
| setService() | Map a service. | ServiceManager |
| setServiceLocator() | Implemented for backwards compatibility only. | AbstractPluginManager |
| setShared() | Add a service sharing rule. | ServiceManager |
| validate() | Validate the plugin is of the expected type (v3). | HelperPluginManager |
| validatePlugin() | Validate the plugin is of the expected type (v2). | HelperPluginManager |
| Parameter Name | Type | Description |
|---|---|---|
| $configOrContainerInstance | null|\ConfigInterface|\ContainerInterface | |
| $v3config | array | If |
Returns:
Add an abstract factory for resolving services.
| Parameter Name | Type | Description |
|---|---|---|
| $factory | string|\Factory\AbstractFactoryInterface | Service |
Returns:
Add a delegator for a given service.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | Service |
| $factory | string|callable|\Factory\DelegatorFactoryInterface | Delegator factory |
Returns:
Add an initializer.
| Parameter Name | Type | Description |
|---|---|---|
| $initializer | string|callable|\Initializer\InitializerInterface |
Returns:
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $name | ||
| $options |
Returns:
Configure the service manager
Valid top keys are:
| Parameter Name | Type | Description |
|---|---|---|
| $config | array |
Returns: self
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $name |
Returns:
Retrieve the flag indicating immutability status.
Returns: bool
Retrieve renderer instance
Returns: null|\Renderer\RendererInterface
Implemented for backwards compatibility with previous plugin managers only.
Returns the creation context.
Returns: \ContainerInterface
{@inheritDoc}
| Parameter Name | Type | Description |
|---|---|---|
| $name |
Returns:
Inject a helper instance with the registered event manager
| Parameter Name | Type | Description |
|---|---|---|
| $first | \ContainerInterface|\Helper\HelperInterface | helper |
| $second | \ContainerInterface|\Helper\HelperInterface | ContainerInterface |
Returns:
Inject a helper instance with the registered renderer
| Parameter Name | Type | Description |
|---|---|---|
| $first | \ContainerInterface|\Helper\HelperInterface | helper |
| $second | \ContainerInterface|\Helper\HelperInterface | ContainerInterface |
Returns:
Inject a helper instance with the registered translator
| Parameter Name | Type | Description |
|---|---|---|
| $first | \ContainerInterface|\Helper\HelperInterface | helper |
| $second | \ContainerInterface|\Helper\HelperInterface | ContainerInterface |
Returns:
Create a lazy service mapping to a class.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | Service |
| $class | null|string | Class |
Returns:
Add an alias.
| Parameter Name | Type | Description |
|---|---|---|
| $alias | string | |
| $target | string |
Returns:
Indicate whether or not the instance is immutable.
| Parameter Name | Type | Description |
|---|---|---|
| $flag | bool |
Returns:
Specify a factory for a given service name.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | Service |
| $factory | string|callable|\Factory\FactoryInterface | Factory |
Returns:
Add an invokable class mapping.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | Service |
| $class | null|string | Class |
Returns:
Set renderer
| Parameter Name | Type | Description |
|---|---|---|
| $renderer | \Renderer\RendererInterface |
Returns: \HelperPluginManager
Map a service.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | Service |
| $service | array|object |
Returns:
Implemented for backwards compatibility only.
Returns the creation context.
| Parameter Name | Type | Description |
|---|---|---|
| $container | \ContainerInterface |
Returns: void
Add a service sharing rule.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | Service |
| $flag | bool | Whether |
Returns:
Validate the plugin is of the expected type (v3).
Validates against callables and HelperInterface implementations.
| Parameter Name | Type | Description |
|---|---|---|
| $instance | mixed |
Returns:
Validate the plugin is of the expected type (v2).
Proxies to validate().
| Parameter Name | Type | Description |
|---|---|---|
| $instance | mixed |
Returns: