Zend_Config_Yaml::__construct
Loads the section $section from the config file encoded as YAML
Sections are defined as properties of the main object In order to extend another section, a section defines the "_extends" property having a value of the section name from which the extending section inherits values. Note that the keys in $section will override any keys of the same name in the sections that have been included via "_extends". Options may include: - allow_modifications: whether or not the config object is mutable - skip_extends: whether or not to skip processing of parent configuration - yaml_decoder: a callback to use to decode the Yaml source
Signature
public function __construct(string
$yaml,
[mixed
$section = null,
[array|boolean
$options = false]] )
Parameters
-
$yaml
- YAML file to process
-
$section
- Section to process
-
$options
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
131 - 231 | CyclomaticComplexity | The method __construct() has a Cyclomatic Complexity of 22. The configured cyclomatic complexity threshold is 10. |
131 - 231 | NPathComplexity | The method __construct() has an NPath complexity of 864. The configured NPath complexity threshold is 200. |
131 - 231 | ExcessiveMethodLength | The phpmd\node\methodnode __construct() has 101 lines of code. Current threshold is set to 100. Avoid really long methods. |