code: public function registerRouter(AbstractRouter $router)
      {
      	$this->router = $router;
      	$this->router->setApplication($this);
      	return $this;
      }
docs: Register a new Router
  
  @param AbstractRouter $router
  @return Application the current application instance