final class SessionFactory (View source)

Creates independent session instances from resolved framework session configuration.

Database connectivity is resolved only when the selected driver requires it.

Constants

private SUPPORTED_DRIVERS

Methods

__construct(ApplicationContext $context, ContainerInterface $container, ResolvedRequestContext|null $requestContext = null)

Defines the application path context and lazy service resolution boundary.

Builds a session with the configured storage, cookie identity and retention settings.

Details

__construct

__construct(ApplicationContext $context, ContainerInterface $container, ResolvedRequestContext|null $requestContext = null)

Defines the application path context and lazy service resolution boundary.

Parameters

ApplicationContext $context
ContainerInterface $container
ResolvedRequestContext|null $requestContext

create

Builds a session with the configured storage, cookie identity and retention settings.