[HttpFoundation] Add methods to interface
This commit is contained in:
parent
402254ca7e
commit
ec3f88f339
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user