public function build($callback, $path = null, $method = null, $count_match = true, $name = null)
    {
        return new Route(
            $callback,
            $this->preprocessPathString($path),
            $method,
            $this->shouldPathStringCauseRouteMatch($path) // Ignore the $count_match boolean that they passed
        );
    }
public function build($callback, $path = null, $method = null, $count_match = true, $name = null)
    {
        return new Route(
            $callback,
            $this->preprocessPathString($path),
            $method,
            $this->shouldPathStringCauseRouteMatch($path) // Ignore the $count_match boolean that they passed
        );
    }
public function build ( $ callback , $ path = null , $ method = null , $ count_match = true , $ name = null ) { return new Route ( $ callback , $ this -> preprocessPathString ( $ path ) , $ method , $ this -> shouldPathStringCauseRouteMatch ( $ path ) // Ignore the $count_match boolean that they passed ) ; }
Build a Route instance

@param callable $callback    Callable callback method to execute on route match
@param string $path          Route URI path to match
@param string|array $method  HTTP Method to match
@param boolean $count_match  Whether or not to count the route as a match when counting total matches
@param string $name          The name of the route
@return Route
Build a Route instance