Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface::redirect
Redirects the user to another URL.
Signature
public function redirect(string
$path,
[string
$route = null,
[string|null
$scheme = null]] )
Parameters
$path
— string- The path info to redirect to.
$route
— string- The route name that matched
$scheme
— object- The URL scheme (null to keep the current one)
Returns
- array
- An array of parameters