We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ed5dcf + b82f301 commit 0252116Copy full SHA for 0252116
src/Symfony/Component/Serializer/Mapping/Loader/YamlFileLoader.php
@@ -15,6 +15,7 @@
15
use Symfony\Component\Serializer\Mapping\AttributeMetadata;
16
use Symfony\Component\Serializer\Mapping\ClassMetadataInterface;
17
use Symfony\Component\Yaml\Parser;
18
+use Symfony\Component\Yaml\Yaml;
19
20
/**
21
* YAML File Loader.
@@ -113,7 +114,7 @@ private function getClassesFromYaml()
113
114
$this->yamlParser = new Parser();
115
}
116
- $classes = $this->yamlParser->parseFile($this->file);
117
+ $classes = $this->yamlParser->parseFile($this->file, Yaml::PARSE_CONSTANT);
118
119
if (empty($classes)) {
120
return array();
0 commit comments