src/Router/RouteCollector.php
private function addRoute($httpMethod, $route, $handler)
    {
        $routeData = $this->routeParser->parse($route);

        foreach ($routeData as $routeDatum) {
            $this->dataGenerator->addRoute($httpMethod, $routeDatum, $handler);
        }
    }
private function addRoute($httpMethod, $route, $handler)
    {
        $routeData = $this->routeParser->parse($route);

        foreach ($routeData as $routeDatum) {
            $this->dataGenerator->addRoute($httpMethod, $routeDatum, $handler);
        }
    }
Add an un-named route to the collection

@param string $httpMethod
@param string $route
@param mixed  $handler