summaryrefslogtreecommitdiffstats
path: root/Http/HttpUtils.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-06-26 12:06:05 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2012-06-26 12:06:05 +0200
commit95445692fd3b2209611c2c5258c0d00ff4be9a15 (patch)
treec2aeb8ce5695c249a44320b0f13c8e9051b22f2d /Http/HttpUtils.php
parent2af0fd6cc0369ae740a1be321cce46e87e9eb519 (diff)
downloadsymfony-security-95445692fd3b2209611c2c5258c0d00ff4be9a15.zip
symfony-security-95445692fd3b2209611c2c5258c0d00ff4be9a15.tar.gz
symfony-security-95445692fd3b2209611c2c5258c0d00ff4be9a15.tar.bz2
fixed phpdoc
Diffstat (limited to 'Http/HttpUtils.php')
-rw-r--r--Http/HttpUtils.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Http/HttpUtils.php b/Http/HttpUtils.php
index aeafde6..1c87e77 100644
--- a/Http/HttpUtils.php
+++ b/Http/HttpUtils.php
@@ -112,7 +112,10 @@ 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))
+ *
+ * @return string An absolute URL
*/
public function generateUri($request, $path)
{
@@ -120,7 +123,7 @@ class HttpUtils
return $path;
}
- if ($path && '/' === $path[0]) {
+ if ('/' === $path[0]) {
return $request->getUriForPath($path);
}