$targetUrl
$targetUrl :
RedirectResponse represents an HTTP response doing a redirect.
__construct(string $url, integer $status = 302, array $headers = array())
Creates a redirect response so that it conforms to the rules defined for a redirect status code.
| 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 |
| integer | $status | The status code (302 by default) |
| array | $headers | The headers (Location is always set to the given URL) |
| None found |
setTargetUrl(\Symfony\Component\HttpFoundation\string $url) : $this
Sets the redirect target of this response.
| \Symfony\Component\HttpFoundation\string | $url |
| None found |