package Default

 Methods

Create and return a StorageInterface instance

factory(string $type, array|\Traversable $options = array()) : \Zend\Session\Storage\StorageInterface
Static

Parameters

$type

string

$options

array\Traversable

Exceptions

\Zend\Session\Exception\InvalidArgumentException for unrecognized $type or individual options

Returns

\Zend\Session\Storage\StorageInterface

Create a storage object from an ArrayStorage class (or a descendent)

createArrayStorage(string $type, array $options) : \Zend\Session\Storage\ArrayStorage
Static

Parameters

$type

string

$options

array

Returns

\Zend\Session\Storage\ArrayStorage

Create a storage object from a class extending AbstractSessionArrayStorage

createSessionArrayStorage(string $type, array $options) : \Zend\Session\Storage\AbstractSessionArrayStorage
Static

Parameters

$type

string

$options

array

Exceptions

\Zend\Session\Exception\InvalidArgumentException if the input option is invalid

Returns

\Zend\Session\Storage\AbstractSessionArrayStorage