1 | <?php declare(strict_types = 1); |
||
16 | class YamlParser implements Parser |
||
17 | { |
||
18 | /** |
||
19 | * @var SymfonyYamlParser |
||
20 | */ |
||
21 | private $parser; |
||
22 | |||
23 | /** |
||
24 | * Construct the wrapper |
||
25 | */ |
||
26 | public function __construct() |
||
30 | |||
31 | /** |
||
32 | * @param string $string |
||
33 | * |
||
34 | * @return mixed |
||
35 | * @throws ParseException |
||
36 | */ |
||
37 | public function parse(string $string) |
||
48 | |||
49 | /** |
||
50 | * @see https://github.com/symfony/symfony/pull/17711 |
||
51 | * |
||
52 | * @param mixed $data |
||
53 | * |
||
54 | * @return mixed |
||
55 | */ |
||
56 | private function fixHashMaps(&$data) |
||
75 | |||
76 | /** |
||
77 | * @param string $contentType |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function canParse(string $contentType): bool |
||
86 | } |
||
87 |