src/Chiron/Routing/RouteResult.php
public static function fromRoute(Route $route, array $params = []): self
    {
        $result = new self();
        $result->success = true;
        $result->route = $route;
        $result->matchedParams = $params;

        return $result;
    }
public static function fromRoute(Route $route, array $params = []): self
    {
        $result = new self();
        $result->success = true;
        $result->route = $route;
        $result->matchedParams = $params;

        return $result;
    }
public static function fromRoute ( Route $ route , array $ params = [ ] ) : self { $ result = new self ( ) ; $ result -> success = true ; $ result -> route = $ route ; $ result -> matchedParams = $ params ; return $ result ; }
Create an instance representing a route succes from the matching route.

@param array $params parameters associated with the matched route, if any
Create an instance representing a route succes from the matching route .