From 7b234db668b9d81e9779485431a12928a3f80320 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 30 Nov 2012 13:53:14 +0100 Subject: [PATCH] [HttpFoundation] added a small comment about the meaning of Request::hasSession() as this is a recurrent question (refs #4541) --- src/Symfony/Component/HttpFoundation/Request.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index d0999d66d7..f7b1c25b81 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -602,7 +602,7 @@ class Request * Whether the request contains a Session which was started in one of the * previous requests. * - * @return boolean + * @return Boolean * * @api */ @@ -615,7 +615,11 @@ class Request /** * Whether the request contains a Session object. * - * @return boolean + * This method does not give any information about the state of the session object, + * like whether the session is started or not. It is just a way to check if this Request + * is associated with a Session instance. + * + * @return Boolean true when the Request contains a Session object, false otherwise * * @api */