mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
Syntax fixes
This commit is contained in:
@@ -1266,7 +1266,7 @@ normalizers (in order of priority):
|
||||
|
||||
:phpclass:`DateTime` and :phpclass:`DateTimeImmutable`) into strings,
|
||||
integers or floats. By default, it converts them to strings using the
|
||||
`RFC3339`_ format. Use ``DateTimeNormalizer::FORMAT_KEY`` and
|
||||
`RFC 3339`_ format. Use ``DateTimeNormalizer::FORMAT_KEY`` and
|
||||
``DateTimeNormalizer::TIMEZONE_KEY`` to change the format.
|
||||
|
||||
To convert the objects to integers or floats, set the serializer
|
||||
|
||||
@@ -76,6 +76,7 @@ If you're not using ``autoconfigure``, you have to tag the service with
|
||||
.. configuration-block::
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# config/services.yaml
|
||||
services:
|
||||
# ...
|
||||
|
||||
Reference in New Issue
Block a user