Class NavigationAbstractServiceFactory

Summary

Fully Qualified Name: Zend\Navigation\Service\NavigationAbstractServiceFactory
Implements: AbstractFactoryInterface

Description

Navigation abstract service factory

Allows configuring several navigation instances. If you have a navigation config key named "special" then you can use $container->get('Zend\Navigation\Special') to retrieve a navigation instance with this configuration.

Methods

Name Description Defined By
__invoke() {@inheritDoc} NavigationAbstractServiceFactory
canCreate() Can we create a navigation by the requested name? (v3) NavigationAbstractServiceFactory
canCreateServiceWithName() Can we create a navigation by the requested name? (v2) NavigationAbstractServiceFactory
createServiceWithName() Can we create a navigation by the requested name? (v2) NavigationAbstractServiceFactory

Method Details

__invoke()

{@inheritDoc}

Parameter Name Type Description
$container
$requestedName
$options

Returns: \Navigation

canCreate()

Can we create a navigation by the requested name? (v3)

Parameter Name Type Description
$container \ContainerInterface
$requestedName string Name

Returns: bool

canCreateServiceWithName()

Can we create a navigation by the requested name? (v2)

Parameter Name Type Description
$container \ServiceLocatorInterface
$name string Normalized
$requestedName string Name

Returns: bool

createServiceWithName()

Can we create a navigation by the requested name? (v2)

Parameter Name Type Description
$container \ServiceLocatorInterface
$name string Normalized
$requestedName string Name

Returns: \Navigation

Top