title: JMS Serializer: overriding default naming strategy in symfony 4 has no effect
body: <p>I found this <a href="https://stackoverflow.com/questions/43529287/jms-serializer-how-to-use-camel-case-for-properties">thread</a> proposing a neat way of overriding globally the default naming strategy in config.yml</p>
  
  <p>but this is for symfony 3 and I am on symfony 4 so I added the line to my <code>config &gt; packages &gt; jms_serializer.yaml</code> but this has no effect at all.</p>
  
  <pre><code>jms_serializer:
    visitors:
      xml_serialization:
          format_output: '%kernel.debug%'
    property_naming:
      id: 'jms_serializer.identical_property_naming_strategy'
  </code></pre>
  
  <p>Does anyone understand why ?</p>
  
  <p>I do dependency injection of <code>SerializerInterface $serializer</code> to use the serializer as it is not possible to call the service from <code>AbstractController</code> in SF4. <code>Controller</code> is deprecated in SF4.</p>