Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a40c0e4

Browse files
committed
[Serializer] use the injected YAML parser
1 parent 167c14f commit a40c0e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Encoder/YamlEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function decode($data, $format, array $context = array())
6060
{
6161
$context = array_merge($this->defaultContext, $context);
6262

63-
return Yaml::parse($data, $context['yaml_flags']);
63+
return $this->parser->parse($data, $context['yaml_flags']);
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)