Session

Implements ServiceProviderInterface

Service provider for the application's session dependency

since

4.0.0

package

Joomla CMS

Methods

generateSessionName

This is a straight up clone of \Joomla\CMS\Application\ApplicationHelper::getHash but instead getting the secret directly from the DIC rather than via the application - as we haven't actually set the app up yet in Factory

generateSessionName(\Joomla\Registry\Registry config,  seedDefault) : 
since

4.0.0

Arguments

config

RegistryThe application configuration.

seedDefault

stringThe default seed for the secret if there isn't a session name configured globally. This is the relevant application's classname

Response

string

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