SecretStoreFactory
in package
Table of Contents
Methods
- fromConfig() : SecretStoreInterface
- fromDriver() : SecretStoreInterface
- Build one named driver without changing the active runtime driver.
- buildChain() : ChainSecretStore
- buildDatabase() : DatabaseSecretStore
- buildStore() : SecretStoreInterface
Methods
fromConfig()
public
static fromConfig([array<string, mixed>|null $config = null ]) : SecretStoreInterface
Parameters
- $config : array<string, mixed>|null = null
Return values
SecretStoreInterfacefromDriver()
Build one named driver without changing the active runtime driver.
public
static fromDriver(string $driver[, array<string, mixed>|null $config = null ]) : SecretStoreInterface
This is intended for explicit secret-store transition and recovery operations that must read or populate a backend before it becomes the application's active driver.
Parameters
- $driver : string
- $config : array<string, mixed>|null = null
Return values
SecretStoreInterfacebuildChain()
private
static buildChain(array<string, mixed> $config, array<string, mixed> $drivers, array<int, string> $stack) : ChainSecretStore
Parameters
- $config : array<string, mixed>
- $drivers : array<string, mixed>
- $stack : array<int, string>
Return values
ChainSecretStorebuildDatabase()
private
static buildDatabase(array<string, mixed> $config, array<string, mixed> $drivers, array<int, string> $stack) : DatabaseSecretStore
Parameters
- $config : array<string, mixed>
- $drivers : array<string, mixed>
- $stack : array<int, string>
Return values
DatabaseSecretStorebuildStore()
private
static buildStore(string $name, array<string, mixed> $drivers[, array<string|int, mixed> $stack = [] ]) : SecretStoreInterface
Parameters
- $name : string
- $drivers : array<string, mixed>
- $stack : array<string|int, mixed> = []