Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 68973f7

Browse filesBrowse files
committed
Merge branch '4.2'
* 4.2: fix (serializer): invert xml and yaml bloc descriptions
2 parents 7422020 + a07c50d commit 68973f7
Copy full SHA for 68973f7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎components/serializer.rst

Copy file name to clipboardExpand all lines: components/serializer.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,14 @@ for each format:
270270

271271
$classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
272272

273-
* XML files::
273+
* YAML files::
274274

275275
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
276276
use Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader;
277277

278278
$classMetadataFactory = new ClassMetadataFactory(new YamlFileLoader('/path/to/your/definition.yaml'));
279279

280-
* YAML files::
280+
* XML files::
281281

282282
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
283283
use Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.