Class HelperConfig

Summary

Fully Qualified Name: Laminas\Navigation\View\HelperConfig
Extends: Config

Description

Service manager configuration for navigation view helpers

Methods

Name Description Defined By
__construct() Constructor. HelperConfig
configureServiceManager() Configure the provided container. HelperConfig
toArray() Config

Method Details

__construct()

Constructor.

Ensure incoming configuration is merged with the defaults defined.

Parameter Name Type Description
$ array
$config

Returns:

configureServiceManager()

Configure the provided container.

Merges navigation_helpers configuration from the parent containers config service with the configuration in this class, and uses that to configure the provided service container (which should be the laminas-view HelperPluginManager). with the service locator instance.

Before configuring he provided container, it also adds a delegator factory for the Navigation helper; the delegator uses the configuration from this class to seed the PluginManager used by the NavigationHelper, ensuring that any overrides provided via configuration are propagated to it.

Parameter Name Type Description
$serviceManager \ServiceManager
$container

Returns: \ServiceManager

toArray()

Returns:

Top