Base ManagerInterface implementation

Defines common constructor logic and getters for Storage and Configuration

package Default

 Methods

Constructor

__construct(\Zend\Session\Config\ConfigInterface|null $config = null, \Zend\Session\Storage\StorageInterface|null $storage = null, \Zend\Session\SaveHandler\SaveHandlerInterface|null $saveHandler = null, array $validators = array()

Parameters

$config

\Zend\Session\Config\ConfigInterfacenull

$storage

\Zend\Session\Storage\StorageInterfacenull

$saveHandler

\Zend\Session\SaveHandler\SaveHandlerInterfacenull

$validators

array

Exceptions

\Zend\Session\Exception\RuntimeException

Retrieve configuration object

getConfig() : \Zend\Session\Config\ConfigInterface
inherited_from \Zend\Session\ManagerInterface::getConfig()

Returns

\Zend\Session\Config\ConfigInterface

Get SaveHandler Object

getSaveHandler() : \Zend\Session\SaveHandler\SaveHandlerInterface
inherited_from \Zend\Session\ManagerInterface::getSaveHandler()

Returns

\Zend\Session\SaveHandler\SaveHandlerInterface

Retrieve storage object

getStorage() : \Zend\Session\Storage\StorageInterface
inherited_from \Zend\Session\ManagerInterface::getStorage()

Returns

\Zend\Session\Storage\StorageInterface

Set configuration object

setConfig(\Zend\Session\Config\ConfigInterface $config) : \Zend\Session\AbstractManager
inherited_from \Zend\Session\ManagerInterface::setConfig()

Parameters

$config

\Zend\Session\Config\ConfigInterface

Returns

\Zend\Session\AbstractManager

Set session save handler object

setSaveHandler(\Zend\Session\SaveHandler\SaveHandlerInterface $saveHandler) : \Zend\Session\AbstractManager
inherited_from \Zend\Session\ManagerInterface::setSaveHandler()

Parameters

$saveHandler

\Zend\Session\SaveHandler\SaveHandlerInterface

Returns

\Zend\Session\AbstractManager

Set session storage object

setStorage(\Zend\Session\Storage\StorageInterface $storage) : \Zend\Session\AbstractManager
inherited_from \Zend\Session\ManagerInterface::setStorage()

Parameters

$storage

\Zend\Session\Storage\StorageInterface

Returns

\Zend\Session\AbstractManager

 Properties

 

$config

$config : \Zend\Session\Config\ConfigInterface

Default

 

Default configuration class to use when no configuration provided

$defaultConfigClass : string

Default

'Zend\Session\Config\SessionConfig'
 

Default storage class to use when no storage provided

$defaultStorageClass : string

Default

'Zend\Session\Storage\SessionArrayStorage'
 

$saveHandler

$saveHandler : \Zend\Session\SaveHandler\SaveHandlerInterface

Default

 

$storage

$storage : \Zend\Session\Storage\StorageInterface

Default

 

$validators

$validators : array

Default