src/Routing/PhrouteRouter.php
public function add($httpMethod, $route, $handler, $middlewares = array())
    {
        $route = $this->parse(array($httpMethod, $route, $handler, $middlewares));

        $this->collector->addRoute($httpMethod, $route[1], $route[2]);

        $this->routes[] = $route;

        return $this;
    }
public function add($httpMethod, $route, $handler, $middlewares = array())
    {
        $route = $this->parse(array($httpMethod, $route, $handler, $middlewares));

        $this->collector->addRoute($httpMethod, $route[1], $route[2]);

        $this->routes[] = $route;

        return $this;
    }
Adds a new raw route.

@param  string|string[] $httpMethod
@param  string          $route
@param  array|string    $handler
@param  array           $middlewares
@return self