public function delete(Route $route): void
    {
        $route->setRequestMethods([RequestMethod::DELETE]);

        $this->addRoute($route);
    }
public function delete(Route $route): void
    {
        $route->setRequestMethods([RequestMethod::DELETE]);

        $this->addRoute($route);
    }
public function delete ( Route $ route ) : void { $ route -> setRequestMethods ( [ RequestMethod :: DELETE ] ) ; $ this -> addRoute ( $ route ) ; }
Helper function to set a DELETE addRoute.

@param Route $route The route

@throws \Exception

@return void
Helper function to set a DELETE addRoute .