Fully Qualified Name: | Laminas\Router\Http\HttpRouterFactory |
Implements: | FactoryInterface |
Name | Description | Defined By |
---|---|---|
__invoke() | Create and return the HTTP router | HttpRouterFactory |
createService() | Create and return RouteStackInterface instance | HttpRouterFactory |
Create and return the HTTP router
Retrieves the "router" key of the Config service, and uses it to instantiate the router. Uses the TreeRouteStack implementation by default.
Parameter Name | Type | Description |
---|---|---|
$container | \ContainerInterface | |
$name | string | |
$options | null|array |
Returns: \RouteStackInterface
Create and return RouteStackInterface instance
For use with laminas-servicemanager v2; proxies to __invoke().
Parameter Name | Type | Description |
---|---|---|
$container | \ServiceLocatorInterface |
Returns: \RouteStackInterface