diff --git a/serializer.rst b/serializer.rst index c3c9898b06b..097a13cfcc5 100644 --- a/serializer.rst +++ b/serializer.rst @@ -101,6 +101,7 @@ 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 } @@ -108,7 +109,7 @@ Here is an example on how to load the - + @@ -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);