Method | Description | |
---|---|---|
__construct ( Symfony\Component\Routing\RouterInterface $router = null ) | Constructor. | |
checkRequestPath ( |
Checks that a given path matches the Request. | |
createRedirectResponse ( |
Creates a redirect Response. | |
createRequest ( |
Creates a Request. |
Method | Description | |
---|---|---|
generateUrl ( $route, $absolute = false ) | ||
resetLocale ( |
hack (don't have a better solution for now) |
public __construct ( Symfony\Component\Routing\RouterInterface $router = null ) | ||
$router | Symfony\Component\Routing\RouterInterface | An RouterInterface instance |
public checkRequestPath ( |
||
$request | A Request instance | |
$path | string | A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) |
return | boolean | true if the path is the same as the one from the Request, false otherwise |
public createRedirectResponse ( |
||
$request | A Request instance | |
$path | string | A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) |
$status | integer | The status code |
return | Response | A RedirectResponse instance |
public createRequest ( |
||
$request | The current Request instance | |
$path | string | A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) |
return | A Request instance |