interface RedirectableUrlMatcherInterface

RedirectableUrlMatcherInterface knows how to redirect the user.

Methods

array
redirect(string$path,string$route,string$scheme =null)

Redirects the user to another URL and returns the parameters for the redirection.

Details

array redirect(string$path,string$route,string$scheme =null)

Redirects the user to another URL and returns the parameters for the redirection.

Parameters

string $path The path info to redirect to
string $route The route name that matched
string $scheme The URL scheme (null to keep the current one)

Return Value

array