public function RemoveRoute ($routeName) {
		$result = NULL;
		if (isset($this->routes[$routeName])) {
			$result = $this->routes[$routeName];
			unset($this->routes[$routeName]);
			$this->removeRouteFromGroup($result, $routeName);
			$controllerAction = $result->GetControllerAction();
			if (isset($this->urlRoutes[$routeName])) 
				unset($this->urlRoutes[$routeName]);
			if (isset($this->urlRoutes[$controllerAction])) 
				unset($this->urlRoutes[$controllerAction]);
			/** @var $currentRoute \MvcCore\Route */
			$currentRoute = & $this->currentRoute;
			if ($currentRoute->GetName() === $result->GetName())
				$this->currentRoute = NULL;
		}
		if (!$this->routes && $this->preRouteMatchingHandler === NULL) 
			$this->anyRoutesConfigured = FALSE;
		return $result;
	}
public function RemoveRoute ($routeName) {
		$result = NULL;
		if (isset($this->routes[$routeName])) {
			$result = $this->routes[$routeName];
			unset($this->routes[$routeName]);
			$this->removeRouteFromGroup($result, $routeName);
			$controllerAction = $result->GetControllerAction();
			if (isset($this->urlRoutes[$routeName])) 
				unset($this->urlRoutes[$routeName]);
			if (isset($this->urlRoutes[$controllerAction])) 
				unset($this->urlRoutes[$controllerAction]);
			/** @var $currentRoute \MvcCore\Route */
			$currentRoute = & $this->currentRoute;
			if ($currentRoute->GetName() === $result->GetName())
				$this->currentRoute = NULL;
		}
		if (!$this->routes && $this->preRouteMatchingHandler === NULL) 
			$this->anyRoutesConfigured = FALSE;
		return $result;
	}
public function RemoveRoute ( $ routeName ) { $ result = NULL ; if ( isset ( $ this -> routes [ $ routeName ] ) ) { $ result = $ this -> routes [ $ routeName ] ; unset ( $ this -> routes [ $ routeName ] ) ; $ this -> removeRouteFromGroup ( $ result , $ routeName ) ; $ controllerAction = $ result -> GetControllerAction ( ) ; if ( isset ( $ this -> urlRoutes [ $ routeName ] ) ) unset ( $ this -> urlRoutes [ $ routeName ] ) ; if ( isset ( $ this -> urlRoutes [ $ controllerAction ] ) ) unset ( $ this -> urlRoutes [ $ controllerAction ] ) ; /** @var $currentRoute \MvcCore\Route */ $ currentRoute = & $ this -> currentRoute ; if ( $ currentRoute -> GetName ( ) === $ result -> GetName ( ) ) $ this -> currentRoute = NULL ; } if ( ! $ this -> routes && $ this -> preRouteMatchingHandler === NULL ) $ this -> anyRoutesConfigured = FALSE ; return $ result ; }
Remove route from router by given name and return removed route instance.
If router has no route by given name, `NULL` is returned.
@param string $routeName
@return \MvcCore\Route|\MvcCore\IRoute|NULL
Remove route from router by given name and return removed route instance . If router has no route by given name NULL is returned .