class HttpUtils
Encapsulates the logic needed to create sub-requests, redirect the user, and match URLs.
__construct(UrlGeneratorInterface $urlGenerator = null, UrlMatcherInterface|RequestMatcherInterface $urlMatcher = null) Constructor. | ||
RedirectResponse | createRedirectResponse(Request $request, string $path, int $status = 302) Creates a redirect Response. | |
Request | createRequest(Request $request, string $path) Creates a Request. | |
bool | checkRequestPath(Request $request, string $path) Checks that a given path matches the Request. | |
string | generateUri(Request $request, string $path) Generates a URI, based on the given path or absolute URL. |
Constructor.
Creates a redirect Response.
Creates a Request.
Checks that a given path matches the Request.
Generates a URI, based on the given path or absolute URL.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Http/HttpUtils.html