public function routeByName($name) { if (isset($this->_routes[$name])) { return $this->_routes[$name]; } if (isset($this->_customRoutes[$name])) { return $this->_customRoutes[$name]; } throw new LookupException("No route named '{$name}'"); }