PHP Class Symfony\Component\HttpFoundation\RedirectResponse

Author: Fabien Potencier ([email protected])
Inheritance: extends Response
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( string $url, integer $status = 302 ) Creates a redirect response so that it conforms to the rules defined for a redirect status code.

Method Details

__construct() public method

Creates a redirect response so that it conforms to the rules defined for a redirect status code.
See also: http://tools.ietf.org/html/rfc2616#section-10.3
public __construct ( string $url, integer $status = 302 )
$url string The URL to redirect to
$status integer The status code (302 by default)