From 4d9de7142b37f6eb2b5ad30027aaf0a96b1735a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20H=C3=A9bert?= Date: Sun, 14 Apr 2019 13:12:32 +0200 Subject: [PATCH] fix (serializer): invert xml and yaml bloc descriptions --- components/serializer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/serializer.rst b/components/serializer.rst index 7056f6bc917..04edfdf4cd5 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -254,14 +254,14 @@ for each format: $classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader())); -* XML files:: +* YAML files:: use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory; use Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader; $classMetadataFactory = new ClassMetadataFactory(new YamlFileLoader('/path/to/your/definition.yaml')); -* YAML files:: +* XML files:: use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory; use Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader;