| 1 | <?php |
||
| 20 | class YamlHandler extends TypeHandler |
||
| 21 | { |
||
| 22 | protected $interpolator; |
||
| 23 | |||
| 24 | 3 | public function __construct(Interpolator $interpolator, $options = []) |
|
| 25 | { |
||
| 26 | 3 | parent::__construct($options); |
|
| 27 | 3 | $this->interpolator = $interpolator; |
|
| 28 | 3 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 3 | public function renderType($data) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function parse($yaml) |
||
| 49 | } |
||
| 50 |