Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  * 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);
 }