[HttpFoundation] Add methods to interface

This commit is contained in:
Drak 2012-03-29 17:18:17 +05:45
parent 402254ca7e
commit ec3f88f339
2 changed files with 13 additions and 7 deletions

View File

@ -165,13 +165,6 @@ interface SessionInterface
*/
function clear();
/**
* Gets session meta.
*
* @return MetaBag
*/
public function getMeta();
/**
* Registers a SessionBagInterface with the session.
*
@ -187,4 +180,11 @@ interface SessionInterface
* @return SessionBagInterface
*/
public function getBag($name);
/**
* Gets session meta.
*
* @return MetaBag
*/
public function getMeta();
}

View File

@ -12,6 +12,7 @@
namespace Symfony\Component\HttpFoundation\Session\Storage;
use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
use Symfony\Component\HttpFoundation\Session\Storage\MetaBag;
/**
* StorageInterface.
@ -123,4 +124,9 @@ interface SessionStorageInterface
* @param SessionBagInterface $bag
*/
function registerBag(SessionBagInterface $bag);
/**
* @return MetaBag
*/
function getMetaBag();
}