ConfigServiceInterface
interface ConfigServiceInterface
Interface to be called for DI for ConfigServiceInterface related services
Methods
Call ConfigFormFactory to create config form
Gets all the bundles that have a bundle.yaml file
Returns config data for specified bundle
Returns the configuration settings defined in the bundle.yaml
Returns the values defined for the configuration of the bundle
Returns the global bundles definitions values
Returns the cache folder
Returns the config folder
Returns the value of container's parameter
Returns the value of parameter
Returns the array of bundles parameters from cache file
Checks if parameter is set
Writes config data for specified bundle to yaml file
Writes configBundles.php
Writes config_bundles.yaml
Details
at line 27
array
convertToArray(Config $config)
Converts Config to array
at line 33
Form
createForm(string $bundle)
Call ConfigFormFactory to create config 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
at line 50
Config
getBundleConfig(string $bundle)
Returns the configuration settings defined in the bundle.yaml
at line 56
Config|null
getDefinedConfig(string $root)
Returns the values defined for the configuration of the bundle
at line 62
array|null
getGlobalConfig()
Returns the global bundles definitions values
at line 68
string
getCacheFolder()
Returns the cache folder
at line 74
string
getConfigFolder()
Returns the config folder
at line 80
mixed
getContainerParameter(string $parameter)
Returns the value of container's parameter
at line 87
mixed
getParameter(string $parameter, string $bundle = null)
Returns the value of parameter
at line 94
array
getParametersCacheFile(string $root, string $bundle = null)
Returns the array of bundles parameters from cache file
at line 100
bool
hasParameter(string $parameter)
Checks if parameter is set
at line 105
setConfig($data)
Writes config data for specified bundle to yaml file
at line 110
writePhpFile(array $globalConfig)
Writes configBundles.php
at line 115
writeYamlFile(array $globalConfig)
Writes config_bundles.yaml