Session
Implements \Joomla\DI\ServiceProviderInterfaceService provider for the application's session dependency
since |
4.0.0 |
---|---|
package |
Joomla CMS |
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\StorageInterface
The session storage engine.- app
\Joomla\CMS\Application\CMSApplicationInterface
The application instance.- dispatcher
\Joomla\Event\DispatcherInterface
The event dispatcher.- options
array
The 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\Container
The 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\Container
The container to register the service to.- sessionHandler
\SessionHandlerInterface
The session handler.