Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher

class RedirectableUrlMatcher extends RedirectableUrlMatcher

Methods

array match(string $pathinfo)

Tries to match a URL with a set of routes.

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

Redirects the user to another URL.

Details

public array match(string $pathinfo)

Tries to match a URL with a set of routes.

Parameters

string $pathinfo The path info to be parsed

Return Value

array An array of parameters

Exceptions

ResourceNotFoundException If the resource could not be found
MethodNotAllowedException If the resource was found but the request method is not allowed

See also

UrlMatcher::match()

at line 30
public array redirect(string $path, string $route, string $scheme = null)

Redirects the user to another URL.

Parameters

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

Return Value

array An array of parameters