Session

Implements \Joomla\DI\ServiceProviderInterface

Service provider for the application's session dependency

since

4.0.0

Methods

buildSession

Build the root session service

buildSession(\Joomla\Session\StorageInterface $storage, \Joomla\CMS\Application\CMSApplicationInterface $app, \Joomla\Event\DispatcherInterface $dispatcher, array $options) : \Joomla\Session\SessionInterface
since

4.0.0

Arguments

$storage

\Joomla\Session\StorageInterfaceThe session storage engine.

$app

\Joomla\CMS\Application\CMSApplicationInterfaceThe application instance.

$dispatcher

\Joomla\Event\DispatcherInterfaceThe event dispatcher.

$options

arrayThe configured session options.

Response

\Joomla\Session\SessionInterface

register

Registers the service provider with a DI container.

register(\Joomla\DI\Container $container) : void
since

4.0.0

Arguments

$container

\Joomla\DI\ContainerThe DI container.

registerSessionHandlerAsService

Registers the session handler as a service

registerSessionHandlerAsService(\Joomla\DI\Container $container, \SessionHandlerInterface $sessionHandler) : void
since

4.0.0

Arguments

$container

\Joomla\DI\ContainerThe container to register the service to.

$sessionHandler

\SessionHandlerInterfaceThe session handler.