diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2013-09-29 21:43:28 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2013-09-29 21:43:28 +0200 |
commit | 46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36 (patch) | |
tree | 742f5653e60dddcd960331a77dedaf50fb602b75 /Http/HttpUtils.php | |
parent | a940d57cac60a12146e2fd1cd543c59109105ad9 (diff) | |
parent | 8969dd88b7a4c3e60cee10ad4094dcd05de62965 (diff) | |
download | symfony-security-46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36.zip symfony-security-46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36.tar.gz symfony-security-46c7d3e11f3ab534ce84dfaeadd7c2870dba1a36.tar.bz2 |
Merge branch '2.3'
* 2.3:
fixed Client when using the terminable event
Fix problem with Windows file links (backslash in JavaScript string)
[Security] fixed wrong phpdoc
[DependencyInjection] Prevented inlining of lazy loaded private service definitions.
[Routing] removed extra argument
[HttpFoundation] Header `HTTP_X_FORWARDED_PROTO` can contain various values Some proxies use `ssl` instead of `https`, as well as Lighttpd mod_proxy allows value chaining (`https, http`, where `https` is always first when request is encrypted).
Added doc comments
Conflicts:
src/Symfony/Component/Routing/Router.php
src/Symfony/Component/Security/Http/Firewall.php
Diffstat (limited to 'Http/HttpUtils.php')
-rw-r--r-- | Http/HttpUtils.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Http/HttpUtils.php b/Http/HttpUtils.php index c3ff865..65ab914 100644 --- a/Http/HttpUtils.php +++ b/Http/HttpUtils.php @@ -20,7 +20,6 @@ use Symfony\Component\Routing\Matcher\RequestMatcherInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; -use Symfony\Component\HttpFoundation\Response; /** * Encapsulates the logic needed to create sub-requests, redirect the user, and match URLs. @@ -37,6 +36,8 @@ class HttpUtils * * @param UrlGeneratorInterface $urlGenerator A UrlGeneratorInterface instance * @param UrlMatcherInterface|RequestMatcherInterface $urlMatcher The Url or Request matcher + * + * @throws \InvalidArgumentException */ public function __construct(UrlGeneratorInterface $urlGenerator = null, $urlMatcher = null) { @@ -54,7 +55,7 @@ class HttpUtils * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * @param integer $status The status code * - * @return Response A RedirectResponse instance + * @return RedirectResponse A RedirectResponse instance */ public function createRedirectResponse(Request $request, $path, $status = 302) { @@ -123,9 +124,11 @@ class HttpUtils * Generates a URI, based on the given path or absolute URL. * * @param Request $request A Request instance - * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) + * @param string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) * * @return string An absolute URL + * + * @throws \LogicException */ public function generateUri($request, $path) { |