ConfigService
class ConfigService implements ConfigServiceInterface
ConfigService class
Constants
CONFIG_FILE_PHP |
Used for configBundles.php |
CONFIG_FILE_YAML |
Used for config_bundles.yaml |
Properties
private ConfigFormFactoryInterface | $configFormFactory | Stores ConfigFormFactoryInterface | |
private ContainerInterface | $container | Stores ContainerInterface | |
private ServiceToolsInterface | $serviceTools | Stores ServiceToolsInterface |
Methods
No description
Call ConfigFormFactory to create config form
Returns the configuration settings defined in the bundle.yaml
Gets all the bundles that have a bundle.yaml file
Returns config data for specified bundle
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 config_bundles.yaml
Writes configBundles.php
Details
at line 60
__construct(ContainerInterface $container, ConfigFormFactoryInterface $configFormFactory, ServiceToolsInterface $serviceTools)
at line 74
array
convertToArray(Config $config)
Converts Config to array
at line 92
Form
createForm(string $bundle)
Call ConfigFormFactory to create config form
at line 102
Config
getBundleConfig(string $bundle)
Returns the configuration settings defined in the bundle.yaml
at line 141
getBundles()
Gets all the bundles that have a bundle.yaml file
at line 169
getConfig(string $bundle)
Returns config data for specified bundle
at line 193
Config|null
getDefinedConfig(string $root)
Returns the values defined for the configuration of the bundle
at line 209
array|null
getGlobalConfig()
Returns the global bundles definitions values
at line 224
string
getCacheFolder()
Returns the cache folder
at line 232
string
getConfigFolder()
Returns the config folder
at line 242
mixed
getContainerParameter(string $parameter)
Returns the value of container's parameter
at line 250
mixed
getParameter(string $parameter, string $bundle = null)
Returns the value of parameter
at line 269
array
getParametersCacheFile(string $root, string $bundle = null)
Returns the array of bundles parameters from cache file
at line 317
bool
hasParameter(string $parameter)
Checks if parameter is set
at line 336
setConfig($data)
Writes config data for specified bundle to yaml file
at line 367
writeYamlFile(array $globalConfig)
Writes config_bundles.yaml
at line 388
writePhpFile(array $globalConfig)
Writes configBundles.php