From 9b2de819ff7c8f58f7459a82ea9af5db09ec18dc Mon Sep 17 00:00:00 2001 From: "H. Westphal" Date: Thu, 23 Feb 2012 20:02:31 +0100 Subject: [PATCH 1/2] Fixed \SessionHandlerInterface in DbalSessionStorage --- .../Bridge/Doctrine/HttpFoundation/DbalSessionStorage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionStorage.php b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionStorage.php index 389a71d862..a260c3a149 100644 --- a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionStorage.php +++ b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionStorage.php @@ -4,7 +4,6 @@ namespace Symfony\Bridge\Doctrine\HttpFoundation; use Doctrine\DBAL\Platforms\MySqlPlatform; use Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage; -use Symfony\Component\HttpFoundation\Session\Storage\SessionHandlerInterface; use Doctrine\DBAL\Driver\Connection; /** @@ -13,7 +12,7 @@ use Doctrine\DBAL\Driver\Connection; * @author Fabien Potencier * @author Johannes M. Schmitt */ -class DbalSessionStorage extends AbstractSessionStorage implements SessionHandlerInterface +class DbalSessionStorage extends AbstractSessionStorage implements \SessionHandlerInterface { /** * @var Connection From 9c8a283c734b42b4d752fa202ad48025ee68fd71 Mon Sep 17 00:00:00 2001 From: "H. Westphal" Date: Thu, 23 Feb 2012 21:05:53 +0100 Subject: [PATCH 2/2] Some \SessionHandlerInterface related documentation updates --- CHANGELOG-2.1.md | 5 ++--- UPGRADE-2.1.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG-2.1.md b/CHANGELOG-2.1.md index f070a66b96..bd045b8c64 100644 --- a/CHANGELOG-2.1.md +++ b/CHANGELOG-2.1.md @@ -241,10 +241,9 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c attributes. `Session->getFlashBag()->all()` clears flashes now. * Added `Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage` base class for session storage drivers. - * Added `Symfony\Component\HttpFoundation\Session\Storage\SessionHandlerInterface` interface - which storage drivers should implement after inheriting from + * Added `SessionHandlerInterface` interface which storage drivers should implement after inheriting from `Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage` when writing custom - session save handlers. This interface is also compatible with PHP 5.4's SessionHandlerInterface. + session save handlers using PHP 5.3. This interface is a stub for the PHP 5.4 interface. * [BC BREAK] `SessionStorageInterface` methods removed: `write()`, `read()` and `remove()`. Added `getBag()`, `registerBag()`. * Moved attribute storage to `Symfony\Component\HttpFoundation\Attribute\AttributeBagInterface`. diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index 85e720c14a..5b16d1f3e3 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -340,4 +340,4 @@ UPGRADE FROM 2.0 to 2.1 were removed from `SessionStorageInterface`. Any session storage driver that wants to use custom save handlers should - implement `Symfony\Component\HttpFoundation\Session\Storage\SessionHandlerInterface`. + implement `SessionHandlerInterface`.