From c59d880593de085289deb37f7f6e155b74525d5d Mon Sep 17 00:00:00 2001 From: Drak Date: Sat, 11 Feb 2012 20:15:36 +0545 Subject: [PATCH] Docblocks. --- .../HttpFoundation/Session/Session.php | 31 ++++++++++++++----- .../Storage/SessionStorageInterface.php | 2 ++ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Session/Session.php b/src/Symfony/Component/HttpFoundation/Session/Session.php index 56ee1f0949..d85768c96d 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Session.php +++ b/src/Symfony/Component/HttpFoundation/Session/Session.php @@ -226,11 +226,23 @@ class Session implements SessionInterface $this->storage = $storage; } + /** + * Registers a SessionBagInterface with the sessio. + * + * @param SessionBagInterface $bag + */ public function registerBag(SessionBagInterface $bag) { $this->storage->registerBag($bag); } + /** + * Get's a bag instance. + * + * @param string $name + * + * @return SessionBagInterface + */ public function getBag($name) { return $this->storage->getBag($name); @@ -249,7 +261,7 @@ class Session implements SessionInterface // the following methods are kept for compatibility with Symfony 2.0 (they will be removed for Symfony 2.3) /** - * @deprecated + * @deprecated since 2.1, will be removed from 2.3 */ public function getFlashes() { @@ -257,7 +269,7 @@ class Session implements SessionInterface } /** - * @deprecated + * @deprecated since 2.1, will be removed from 2.3 */ public function setFlashes($values) { @@ -265,7 +277,7 @@ class Session implements SessionInterface } /** - * @deprecated + * @deprecated since 2.1, will be removed from 2.3 */ public function getFlash($name, $default = null) { @@ -273,7 +285,7 @@ class Session implements SessionInterface } /** - * @deprecated + * @deprecated since 2.1, will be removed from 2.3 */ public function setFlash($name, $value) { @@ -281,7 +293,7 @@ class Session implements SessionInterface } /** - * @deprecated + * @deprecated since 2.1, will be removed from 2.3 */ public function hasFlash($name) { @@ -289,7 +301,7 @@ class Session implements SessionInterface } /** - * @deprecated + * @deprecated since 2.1, will be removed from 2.3 */ public function removeFlash($name) { @@ -297,13 +309,18 @@ class Session implements SessionInterface } /** - * @deprecated + * @deprecated since 2.1, will be removed from 2.3 */ public function clearFlashes() { return $this->getBag('flashes')->clear(); } + /** + * This method does not do anything. + * + * @deprecated since 2.1, will be removed from 2.3 + */ public function close() { } diff --git a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php index a5afda9672..7eb720b7c6 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/Storage/SessionStorageInterface.php @@ -85,6 +85,8 @@ interface SessionStorageInterface /** * Registers a SessionBagInterface for use. + * + * @param SessionBagInterface $bag */ function registerBag(SessionBagInterface $bag); }