src/bitExpert/Pathfinder/RoutingResult.php
public static function forSuccess(Route $route, array $params = []) : RoutingResult
    {
        $result = new self();
        $result->success = true;
        $result->route = $route;
        $result->params = $params;

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

        return $result;
    }
Factory method to create a {@link \bitExpert\Pathfinder\RoutingResult}
if the routing process succeeded.

@param Route $route
@param array $params
@return RoutingResult