interface ConfigServiceInterface

Interface to be called for DI for ConfigServiceInterface related services

Methods

array
convertToArray(Config $config)

Converts Config to array

Form
createForm(string $bundle)

Call ConfigFormFactory to create config form

getBundles()

Gets all the bundles that have a bundle.yaml file

getConfig(string $bundle)

Returns config data for specified bundle

getBundleConfig(string $bundle)

Returns the configuration settings defined in the bundle.yaml

Config|null
getDefinedConfig(string $root)

Returns the values defined for the configuration of the bundle

array|null
getGlobalConfig()

Returns the global bundles definitions values

string
getCacheFolder()

Returns the cache folder

string
getConfigFolder()

Returns the config folder

mixed
getContainerParameter(string $parameter)

Returns the value of container's parameter

mixed
getParameter(string $parameter, string $bundle = null)

Returns the value of parameter

array
getParametersCacheFile(string $root, string $bundle = null)

Returns the array of bundles parameters from cache file

bool
hasParameter(string $parameter)

Checks if parameter is set

setConfig($data)

Writes config data for specified bundle to yaml file

writePhpFile(array $globalConfig)

Writes configBundles.php

writeYamlFile(array $globalConfig)

Writes config_bundles.yaml

Details

at line 27
array convertToArray(Config $config)

Converts Config to array

Parameters

Config $config

Return Value

array

at line 33
Form createForm(string $bundle)

Call ConfigFormFactory to create config form

Parameters

string $bundle

Return Value

Form

at line 38
getBundles()

Gets all the bundles that have a bundle.yaml file

at line 43
getConfig(string $bundle)

Returns config data for specified bundle

Parameters

string $bundle

at line 50
Config getBundleConfig(string $bundle)

Returns the configuration settings defined in the bundle.yaml

Parameters

string $bundle

Return Value

Config

Exceptions

LogicException

at line 56
Config|null getDefinedConfig(string $root)

Returns the values defined for the configuration of the bundle

Parameters

string $root

Return Value

Config|null

at line 62
array|null getGlobalConfig()

Returns the global bundles definitions values

Return Value

array|null

at line 68
string getCacheFolder()

Returns the cache folder

Return Value

string

at line 74
string getConfigFolder()

Returns the config folder

Return Value

string

at line 80
mixed getContainerParameter(string $parameter)

Returns the value of container's parameter

Parameters

string $parameter

Return Value

mixed

at line 87
mixed getParameter(string $parameter, string $bundle = null)

Returns the value of parameter

Parameters

string $parameter
string $bundle

Return Value

mixed

Exceptions

LogicException

at line 94
array getParametersCacheFile(string $root, string $bundle = null)

Returns the array of bundles parameters from cache file

Parameters

string $root
string $bundle

Return Value

array

Exceptions

LogicException

at line 100
bool hasParameter(string $parameter)

Checks if parameter is set

Parameters

string $parameter

Return Value

bool

at line 105
setConfig($data)

Writes config data for specified bundle to yaml file

Parameters

$data

at line 110
writePhpFile(array $globalConfig)

Writes configBundles.php

Parameters

array $globalConfig

at line 115
writeYamlFile(array $globalConfig)

Writes config_bundles.yaml

Parameters

array $globalConfig