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