/** * Sets up the router based on the configuration provided * * @param Application $application * @return void */ protected function setupRouter(AppContext $application) { $router = new Router(); $router->addRoutes($this->config->routes); $application->setRouter($router); }
/** * Sets up the router based on the configuration provided * * @param Application $application * @return void */ protected function setupRouter(AppContext $application) { $router = $application->getLocator()->get('Zend\\Mvc\\Router\\RouteStack'); $application->setRouter($router); }