public static function createRouteRedirect(
        $route,
        array $parameters = [],
        $statusCode = Response::HTTP_FOUND,
        array $headers = []
    ) {
        $view = static::create(null, $statusCode, $headers);
        $view->setRoute($route);
        $view->setRouteParameters($parameters);

        return $view;
    }
public static function createRouteRedirect(
        $route,
        array $parameters = [],
        $statusCode = Response::HTTP_FOUND,
        array $headers = []
    ) {
        $view = static::create(null, $statusCode, $headers);
        $view->setRoute($route);
        $view->setRouteParameters($parameters);

        return $view;
    }
public static function createRouteRedirect ( $ route , array $ parameters = [ ] , $ statusCode = Response :: HTTP_FOUND , array $ headers = [ ] ) { $ view = static :: create ( null , $ statusCode , $ headers ) ; $ view -> setRoute ( $ route ) ; $ view -> setRouteParameters ( $ parameters ) ; return $ view ; }
Convenience method to allow for a fluent interface while creating a redirect to a
given route.

@param string $route
@param array  $parameters
@param int    $statusCode
@param array  $headers

@return static
Convenience method to allow for a fluent interface while creating a redirect to a given route .