class RedirectableCompiledUrlMatcher extendsCompiledUrlMatcher implementsRedirectableUrlMatcherInterface

Traits

CompiledUrlMatcherTrait

Methods

__construct(array$compiledRoutes,RequestContext$context)

No description

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

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

Details

__construct(array$compiledRoutes,RequestContext$context)

Parameters

array $compiledRoutes
RequestContext $context

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