Zend\Mvc\Service\RouterFactory::createService
Create and return the router
Retrieves the "router" key of the Config service, and uses it to instantiate the router. Uses the TreeRouteStack implementation by default.
Signature
public function createService(ServiceLocatorInterface
$serviceLocator,
[string|null
$cName = null,
[string|null
$rName = null]] )
Parameters
$serviceLocator
— Zend\ServiceManager\ServiceLocatorInterface
$cName
— object
$rName
— object
Returns
- RouteStackInterface