Class HttpRouterFactory

Summary

Fully Qualified Name: Laminas\Router\Http\HttpRouterFactory
Implements: FactoryInterface

Description

Methods

Name Description Defined By
__invoke() Create and return the HTTP router HttpRouterFactory
createService() Create and return RouteStackInterface instance HttpRouterFactory

Method Details

__invoke()

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

createService()

Create and return RouteStackInterface instance

For use with laminas-servicemanager v2; proxies to __invoke().

Parameter Name Type Description
$container \ServiceLocatorInterface

Returns: \RouteStackInterface

Top