Skip to content

AzureTableSessionFactory

session slot factory for AzureTableSessionPersistence.

yaml session: class: Quiote\Storage\Azure\AzureTableSessionFactory params: account_name: '%env(AZURE_STORAGE_ACCOUNT)%' account_key: '%env(AZURE_STORAGE_KEY)%' table: sessions

The %env(NAME)% credentials are read from the process environment when the compiled configuration is loaded, not when it is compiled, so no key is written into the config cache — see EnvPlaceholder.

Cheaper than AzureBlobSessionFactory for small key/value-shaped payloads. Bring your own PSR-18 client, bound in the container.

final class AzureTableSessionFactory implements SessionFactoryInterface

ImplementsSessionFactoryInterface
Since3.0.0
SourceAzureTableSessionFactory.php
MethodDescription
createPersistence(Context $context, array<string, mixed> $parameters): SessionPersistenceInterfaceBuilds table-backed session persistence from the slot’s parameters.

public function createPersistence(Context $context, array<string, mixed> $parameters): SessionPersistenceInterface

Builds table-backed session persistence from the slot’s parameters.

ParameterTypeDescription
$contextContext
$parametersarray``<``string``, ``mixed``>

Returns SessionPersistenceInterface

ThrowsWhen
RuntimeExceptionIf no PSR-18 client is bound in the container.