1 | <?php |
||
19 | class Yaml implements ParserInterface |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | * Loads a YAML/YML file as an array |
||
24 | * |
||
25 | * @throws ParseException If there is an error parsing the YAML file |
||
26 | */ |
||
27 | 6 | public function parseFile($filename) |
|
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | * Loads a YAML/YML string as an array |
||
48 | * |
||
49 | * @throws ParseException If If there is an error parsing the YAML string |
||
50 | */ |
||
51 | 6 | public function parseString($config) |
|
68 | |||
69 | /** |
||
70 | * Completes parsing of YAML/YML data |
||
71 | * |
||
72 | * @param array $data |
||
73 | * |
||
74 | * @return array|null |
||
75 | */ |
||
76 | 6 | protected function parse($data = null) |
|
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | 3 | public static function getSupportedExtensions() |
|
88 | } |
||
89 |