SessionFactoryInterface
Factory interface for creating session instances.
This allows for different session implementations and custom initialization logic.
Tags
Table of Contents
Methods
- create() : SessionInterface
- Creates a new session with an auto-generated UUID.
- createWithId() : SessionInterface
- Creates a session with a specific UUID.
Methods
create()
Creates a new session with an auto-generated UUID.
public
create(SessionStoreInterface $store) : SessionInterface
This is the standard factory method for creating sessions.
Parameters
- $store : SessionStoreInterface
Return values
SessionInterfacecreateWithId()
Creates a session with a specific UUID.
public
createWithId(Uuid $id, SessionStoreInterface $store) : SessionInterface
Use this when you need to reconstruct a session with a known ID.
Parameters
- $id : Uuid
- $store : SessionStoreInterface