KMP PHP API Reference

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

fromDriver()

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
SecretStoreInterface

buildChain()

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
ChainSecretStore

buildDatabase()

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
DatabaseSecretStore

buildStore()

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> = []
Return values
SecretStoreInterface
On this page

Search results