package Default

 Methods

Create and return the router

createService(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string|null $cName = null, string|null $rName = null) : \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.

inherited_from \Zend\ServiceManager\FactoryInterface::createService()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

$cName

stringnull

$rName

stringnull

Returns

\Zend\Mvc\Router\RouteStackInterface