Class RouterFactory

Summary

Fully Qualified Name: Zend\Router\RouterFactory
Implements: FactoryInterface

Description

Methods

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

Method Details

__invoke()

Create and return the router

Delegates to the HttpRouter service.

Parameter Name Type Description
$container \ContainerInterface
$name string
$options null|array

Returns: \RouteStackInterface

createService()

Create and return RouteStackInterface instance

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

Parameter Name Type Description
$container \ServiceLocatorInterface
$normalizedName null|string
$requestedName null|string

Returns: \RouteStackInterface

Top