sfYamlConfigHandler is a base class for YAML (.yml) configuration handlers.
This class provides a central location for parsing YAML files.
Inheritence
sfAutoloadConfigHandler, sfCacheConfigHandler, sfCompileConfigHandler, sfDatabaseConfigHandler, sfDefineEnvironmentConfigHandler, sfFactoryConfigHandler, sfFilterConfigHandler, sfGeneratorConfigHandler, sfRootConfigHandler, sfRoutingConfigHandler, sfSecurityConfigHandler, sfSimpleYamlConfigHandler, sfValidatorConfigHandler, sfViewConfigHandler <
sfYamlConfigHandler
<
sfConfigHandler
Method Summary
-
flattenConfiguration($config)
-
string
parseYaml($configFile)
Parses a YAML (.yml) configuration file.
-
array
flattenConfigurationWithEnvironment($config)
Merges default, all and current environment configurations.
-
array
parseYamls($configFiles)
Parses an array of YAMLs files and merges them in one configuration array.
-
string
getConfigValue($keyName, $category, $defaultValue = null)
Gets a configuration value for a given key and category.
-
string
mergeConfigValue($keyName, $category)
Merges configuration values for a given key and category.
__construct , execute , initialize , replaceConstants , replacePath , getConfiguration , getParameterHolder
Method Details
-
flattenConfiguration ($config)
-
(string) parseYaml ($configFile)
| $configFile |
An absolute filesystem path to a configuration file |
Parses a YAML (.yml) configuration file.
returns A parsed .yml configuration
throws sfConfigurationException If a requested configuration file does not exist or is not readable
-
(array) flattenConfigurationWithEnvironment ($config)
| $config |
The main configuratino array |
Merges default, all and current environment configurations.
returns The merged configuration
-
(array) parseYamls ($configFiles)
| $configFiles |
An array of configuration file paths |
Parses an array of YAMLs files and merges them in one configuration array.
returns A merged configuration array
-
(string) getConfigValue ($keyName, $category, $defaultValue = null)
| $keyName |
The key name |
| $category |
The category name |
| $defaultValue |
The default value |
Gets a configuration value for a given key and category.
returns The value associated with this key name and category
-
(string) mergeConfigValue ($keyName, $category)
| $keyName |
The key name |
| $category |
The category name |
Merges configuration values for a given key and category.
returns The value associated with this key name and category
|