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 3a66b883d9..ca12ab2940 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`. 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