Symfony\Component\HttpFoundation\RedirectResponse::__construct
Creates a redirect response so that it conforms to the rules defined for a redirect status code.
Signature
public function __construct(string
$url,
[integer
$status = 302,
array
$headers] )
Parameters
$url
— string- The URL to redirect to
$status
— integer- The status code (302 by default)
$headers
— array- The headers (Location is always set to the given url)