Skip to content

Commit

Permalink
minor #6882 Update serializer.rst (seferov)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.7 branch.

Discussion
----------

Update serializer.rst

There is no need for normalizer service to be public

Commits
-------

747825f Update serializer.rst
  • Loading branch information
wouterj committed Aug 17, 2016
2 parents 22cc6fd + 747825f commit b7b13f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,15 @@ Here is an example on how to load the
services:
get_set_method_normalizer:
class: Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer
public: false
tags:
- { name: serializer.normalizer }
.. code-block:: xml
<!-- app/config/services.xml -->
<services>
<service id="get_set_method_normalizer" class="Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer">
<service id="get_set_method_normalizer" class="Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer" public="false">
<tag name="serializer.normalizer" />
</service>
</services>
Expand All @@ -121,6 +122,7 @@ Here is an example on how to load the
$definition = new Definition(
'Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer'
));
$definition->setPublic(false);
$definition->addTag('serializer.normalizer');
$container->setDefinition('get_set_method_normalizer', $definition);
Expand Down

0 comments on commit b7b13f0

Please sign in to comment.