\phpDocumentor\ConfigurationSymfonyConfigFactory

Summary

Methods
Properties
Constants
__construct()
createFromFile()
createDefault()
No public properties found
FIELD_CONFIG_VERSION
DEFAULT_CONFIG_VERSION
No protected methods found
No protected properties found
N/A
generateConfiguration()
processConfiguration()
findDefinition()
upgradeConfiguration()
$configurationDefinitions
N/A

Constants

FIELD_CONFIG_VERSION

FIELD_CONFIG_VERSION = 'configVersion'

DEFAULT_CONFIG_VERSION

DEFAULT_CONFIG_VERSION = '2'

Properties

$configurationDefinitions

$configurationDefinitions : \Symfony\Component\Config\Definition\ConfigurationInterface[]

Type

ConfigurationInterface[]

Methods

__construct()

__construct(\Symfony\Component\Config\Definition\ConfigurationInterface[]  $definitions) : mixed

Parameters

\Symfony\Component\Config\Definition\ConfigurationInterface[] $definitions

Returns

mixed —

createFromFile()

createFromFile(string  $filename) : array

Parameters

string $filename

Returns

array —

createDefault()

createDefault() : array

Returns

array —

generateConfiguration()

generateConfiguration(array  $values) : array

Parameters

array $values

Returns

array —

processConfiguration()

processConfiguration(array  $values) : array

Normalizes and validates the given values.

When this version of the configuration can be upgraded (which is detected by the Upgradable interface on the Configuration definition) then it will do so and re-run this method with the upgraded values. The 'configVersion' field will tell which definition should be used; when none is provided then a version 2 configuration is assumed.

Parameters

array $values

Returns

array —

findDefinition()

findDefinition(string  $configurationVersion) : \Symfony\Component\Config\Definition\ConfigurationInterface

Parameters

string $configurationVersion

Returns

\Symfony\Component\Config\Definition\ConfigurationInterface —

upgradeConfiguration()

upgradeConfiguration(\phpDocumentor\Configuration\Definition\Upgradable  $definition, array  $configuration) : array

Parameters

\phpDocumentor\Configuration\Definition\Upgradable $definition
array $configuration

Returns

array —