phpBB API Documentation
Class

phpbb\storage\adapter_factory

class adapter_factory

Methods

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

Constructor

adapter_interface 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
public __construct(config $config, service_collection $adapters, service_collection $providers)

Constructor

Parameters

config $config
service_collection $adapters
service_collection $providers

at line 58
public 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
public 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