Fully Qualified Name: | Zend\Mvc\I18n\Router\HttpRouterDelegatorFactory |
Implements: | DelegatorFactoryInterface |
Name | Description | Defined By |
---|---|---|
__invoke() | Decorate the HttpRouter factory. | HttpRouterDelegatorFactory |
createDelegatorWithName() | zend-servicemanager v2 compabibility | HttpRouterDelegatorFactory |
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
zend-servicemanager v2 compabibility
Parameter Name | Type | Description |
---|---|---|
$container | \ServiceLocatorInterface | |
$name | string | |
$requestedName | string | |
$callback | callable |
Returns: \Zend\Router\RouteStackInterface|\TranslatorAwareTreeRouteStack