Session
Implements 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, mixed||string|int options) : \Joomla\Session\SessionInterface
| since |
4.0.0 |
|---|
Arguments
- storage
StorageInterfaceThe session storage engine.- app
CMSApplicationInterfaceThe application instance.- dispatcher
DispatcherInterfaceThe event dispatcher.- options
array<string|int, mixed>The configured session options.
Response
SessionInterface
register
Registers the service provider with a DI container.
register(\Joomla\DI\Container container) :
| since |
4.0.0 |
|---|
Arguments
- container
ContainerThe DI container.
Response
void
registerSessionHandlerAsService
Registers the session handler as a service
registerSessionHandlerAsService(\Joomla\DI\Container container, \SessionHandlerInterface sessionHandler) :
| since |
4.0.0 |
|---|
Arguments
- container
ContainerThe container to register the service to.- sessionHandler
SessionHandlerInterfaceThe session handler.
Response
void