ConfigurationStorageDoctrineRepository
in package
implements
ConfigurationStorageRepository
Class LegacyStorageRepository
Interfaces, Classes and Traits
- ConfigurationStorageRepository
- Interface ConfigurationStorageRepository
Table of Contents
- $namespaceConverter : NamespaceConverter
- $reader : ConfigurationStorageReader
- $writer : ConfigurationStorageWriter
- __construct() : mixed
- LegacyStorageRepository constructor.
- delete() : void
- Deletes a configuration from namespace by using the given key.
- deleteAll() : void
- Deletes all configurations from namespace.
- get() : string
- Returns the configuration value of the given key.
- getAll() : array<string|int, mixed>
- Returns a list of all configurations in the current namespace.
- getAllTree() : array<string|int, mixed>
- Returns a list of all configurations in the current namespace.
- is() : bool
- Checks if configuration value of given key represents true boolean.
- set() : void
- Sets a configuration with the given value.
- setAll() : void
- Updates a list of configurations.
Properties
$namespaceConverter
private
NamespaceConverter
$namespaceConverter
$reader
private
ConfigurationStorageReader
$reader
$writer
private
ConfigurationStorageWriter
$writer
Methods
__construct()
LegacyStorageRepository constructor.
public
__construct(ConfigurationStorageReader $reader, ConfigurationStorageWriter $writer, NamespaceConverter $namespaceConverter) : mixed
Parameters
- $reader : ConfigurationStorageReader
- $writer : ConfigurationStorageWriter
- $namespaceConverter : NamespaceConverter
Return values
mixed —delete()
Deletes a configuration from namespace by using the given key.
public
delete(string $key) : void
Parameters
- $key : string
Tags
Return values
void —deleteAll()
Deletes all configurations from namespace.
public
deleteAll([string $prefix = '' ]) : void
Parameters
- $prefix : string = ''
Tags
Return values
void —get()
Returns the configuration value of the given key.
public
get(string $key) : string
Parameters
- $key : string
Tags
Return values
string —getAll()
Returns a list of all configurations in the current namespace.
public
getAll([string $prefix = '' ]) : array<string|int, mixed>
Parameters
- $prefix : string = ''
Tags
Return values
array<string|int, mixed> —getAllTree()
Returns a list of all configurations in the current namespace.
public
getAllTree([string $prefix = '' ]) : array<string|int, mixed>
Parameters
- $prefix : string = ''
Tags
Return values
array<string|int, mixed> —is()
Checks if configuration value of given key represents true boolean.
public
is(string $key) : bool
Parameters
- $key : string
Tags
Return values
bool —set()
Sets a configuration with the given value.
public
set(string $key, string $value) : void
Parameters
- $key : string
- $value : string
Tags
Return values
void —setAll()
Updates a list of configurations.
public
setAll(array<string|int, mixed> $configTree) : void
Parameters
- $configTree : array<string|int, mixed>