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.
Synopsis
Section titled “Synopsis”final class AzureTableSessionFactory implements SessionFactoryInterface
| Implements | SessionFactoryInterface |
| Since | 3.0.0 |
| Source | AzureTableSessionFactory.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
createPersistence(Context $context, array<string, mixed> $parameters): SessionPersistenceInterface | Builds table-backed session persistence from the slot’s parameters. |
createPersistence()
Section titled “createPersistence()”public function createPersistence(Context $context, array<string, mixed> $parameters): SessionPersistenceInterface
Builds table-backed session persistence from the slot’s parameters.
| Parameter | Type | Description |
|---|---|---|
$context | Context | |
$parameters | array``<``string``, ``mixed``> |
Returns SessionPersistenceInterface
| Throws | When |
|---|---|
RuntimeException | If no PSR-18 client is bound in the container. |