merged branch snc/session-handler (PR #3436)
Commits -------9c8a283
Some \SessionHandlerInterface related documentation updates9b2de81
Fixed \SessionHandlerInterface in DbalSessionStorage Discussion ---------- Some \SessionHandlerInterface related updates --------------------------------------------------------------------------- by snc at 2012-02-23T20:01:51Z I checked the `Locale` stub in the documentation and it looks like the `\` is not prefixed, so I'll change this, too. --------------------------------------------------------------------------- by drak at 2012-02-24T07:40:39Z We really need some tests for the bridge classes, even if they stubs which cause the compiler to at least parse the class, would pick up refactorings like this.
This commit is contained in:
commit
3de31c62d6
|
@ -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`.
|
||||
|
|
|
@ -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`.
|
||||
|
|
|
@ -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 <fabien@symfony.com>
|
||||
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
|
||||
*/
|
||||
class DbalSessionStorage extends AbstractSessionStorage implements SessionHandlerInterface
|
||||
class DbalSessionStorage extends AbstractSessionStorage implements \SessionHandlerInterface
|
||||
{
|
||||
/**
|
||||
* @var Connection
|
||||
|
|
Reference in New Issue