Skip to content

Commit 90f5455

Browse files
committed
part 2
1 parent ee36a46 commit 90f5455

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

components/serializer.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ There are several types of normalizers available:
662662
calling the constructor during the denormalization process.
663663

664664
Objects are normalized to a map of property names and values (names are
665-
generated removing the ``get``, ``set``, ``has`` or ``remove`` prefix from
665+
generated removing the ``get``, ``set``, ``has``, ``is`` or ``remove`` prefix from
666666
the method name and lowercasing the first letter; e.g. ``getFirstName()`` ->
667667
``firstName``).
668668

@@ -1178,9 +1178,7 @@ Use the special ``#`` key to define the data of a node::
11781178
// is encoded as follows:
11791179
// <?xml version="1.0"?>
11801180
// <response>
1181-
// <foo bar="value">
1182-
// baz
1183-
// </foo>
1181+
// <foo bar="value">baz</foo>
11841182
// </response>
11851183

11861184
Context

reference/configuration/framework.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ the ``dev`` environment).
19451945
given the adapter they are based on. Internally, a pool wraps the definition
19461946
of an adapter.
19471947

1948-
.. _reference-cache-systen:
1948+
.. _reference-cache-system:
19491949

19501950
system
19511951
......

serializer.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,7 @@ properties and setters (``setXxx()``) to change properties:
121121
Using Serialization Groups Annotations
122122
--------------------------------------
123123

124-
To use annotations, first add support for them via the SensioFrameworkExtraBundle:
125-
126-
.. code-block:: terminal
127-
128-
$ composer require sensio/framework-extra-bundle
129-
130-
Next, add the :ref:`@Groups annotations <component-serializer-attributes-groups-annotations>`
124+
To use annotations, add the :ref:`@Groups annotations <component-serializer-attributes-groups-annotations>`
131125
to your class and choose which groups to use when serializing::
132126

133127
$json = $serializer->serialize(
@@ -138,7 +132,7 @@ to your class and choose which groups to use when serializing::
138132
.. tip::
139133

140134
The value of the ``groups`` key can be a single string, or an array of strings.
141-
135+
142136
.. versionadded:: 4.2
143137
The option to pass a single string to ``groups`` was introduced in Symfony 4.2.
144138

@@ -160,7 +154,7 @@ Configuring the Metadata Cache
160154

161155
The metadata for the serializer is automatically cached to enhance application
162156
performance. By default, the serializer uses the ``cache.system`` cache pool
163-
which is configured using the :ref:`cache.system <reference-cache-systen>`
157+
which is configured using the :ref:`cache.system <reference-cache-system>`
164158
option.
165159

166160
Enabling a Name Converter

0 commit comments

Comments
 (0)