Class HttpRouterDelegatorFactory

Summary

Fully Qualified Name: Zend\Mvc\I18n\Router\HttpRouterDelegatorFactory
Implements: DelegatorFactoryInterface

Description

Methods

Name Description Defined By
__invoke() Decorate the HttpRouter factory. HttpRouterDelegatorFactory
createDelegatorWithName() zend-servicemanager v2 compabibility HttpRouterDelegatorFactory

Method Details

__invoke()

Decorate the HttpRouter factory.

If the HttpRouter factory returns a TranslatorAwareTreeRouteStack, we should inject it with a translator.

If the MvcTranslator service is available, that translator is used. If the TranslatorInterface service is available, that translator is used.

Otherwise, we disable translation in the instance before returning it.

Parameter Name Type Description
$container \ContainerInterface
$name string
$callback callable
$options null|\arry

Returns: \Zend\Router\RouteStackInterface|\TranslatorAwareTreeRouteStack

createDelegatorWithName()

zend-servicemanager v2 compabibility

Parameter Name Type Description
$container \ServiceLocatorInterface
$name string
$requestedName string
$callback callable

Returns: \Zend\Router\RouteStackInterface|\TranslatorAwareTreeRouteStack

Top