class adapter_factory

Properties

protected config $config
protected service_collection $adapters
protected service_collection $providers

Methods

__construct(config $config, service_collection $adapters, service_collection $providers)

Constructor

get(string $storage_name)

Obtains a configured adapters for a given storage

array
build_options(string $storage_name, array $definitions)

Obtains configuration for a given storage

Details

at line 44
__construct(config $config, service_collection $adapters, service_collection $providers)

Constructor

Parameters

config $config
service_collection $adapters
service_collection $providers

at line 58
adapter_interface get(string $storage_name)

Obtains a configured adapters for a given storage

Parameters

string $storage_name

Return Value

adapter_interface

at line 82
array build_options(string $storage_name, array $definitions)

Obtains configuration for a given storage

Parameters

string $storage_name
array $definitions

Return Value

array

Returns storage configuration values