src/Router.php
public function remove(Route $route)
    {
        $id = array_search($route, $this->routes);
        if ($id === false) {
            throw new \UnderflowException('Given Route not found');
        }

        unset($this->routes[$id]);
    }
public function remove(Route $route)
    {
        $id = array_search($route, $this->routes);
        if ($id === false) {
            throw new \UnderflowException('Given Route not found');
        }

        unset($this->routes[$id]);
    }
public function remove ( Route $ route ) { $ id = array_search ( $ route , $ this -> routes ) ; if ( $ id === false ) { throw new \ UnderflowException ( 'Given Route not found' ) ; } unset ( $ this -> routes [ $ id ] ) ; }
Removes the given route object from the registered routes

@param Route $route
@throws \UnderflowException if the route does not exist
Removes the given route object from the registered routes