[Serializer] use the injected YAML parser
This commit is contained in:
parent
167c14f248
commit
a40c0e4484
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user