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
StorageInterface
The session storage engine.- app
CMSApplicationInterface
The application instance.- dispatcher
DispatcherInterface
The 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
Container
The 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
Container
The container to register the service to.- sessionHandler
SessionHandlerInterface
The session handler.
Response
void