public TrustedRedirectResponse::__construct($url, $status = 302, $headers = array())
Creates a redirect response so that it conforms to the rules defined for a redirect status code.
Parameters
string $url The URL to redirect to. The URL should be a full URL, with schema etc.,: but practically every browser redirects on paths only as well
int $status The status code (302 by default):
array $headers The headers (Location is always set to the given URL):
Throws
\InvalidArgumentException
Override