Methods

Create and return the router

createService(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string | null $cName, string | null $rName) : \Zend\Mvc\Router\RouteStackInterface

Retrieves the "router" key of the Config service, and uses it to instantiate the router. Uses the TreeRouteStack implementation by default.

Parameters

$cName

stringnull

$rName

stringnull

Returns