[Serializer] use the injected YAML parser

This commit is contained in:
Christian Flothmann 2016-09-21 16:31:25 +02:00
parent 167c14f248
commit a40c0e4484

View File

@ -60,7 +60,7 @@ class YamlEncoder implements EncoderInterface, DecoderInterface
{
$context = array_merge($this->defaultContext, $context);
return Yaml::parse($data, $context['yaml_flags']);
return $this->parser->parse($data, $context['yaml_flags']);
}
/**