JMSSerializerBundle icon indicating copy to clipboard operation
JMSSerializerBundle copied to clipboard

Config file jms_serializer.yaml ignored

Open Fly06-Fr opened this issue 1 year ago • 2 comments

I wanted to pass some options to the json serializer and realised that my config file content was just not taken into account.

To reproduce the issue create a file named jms_serializer.yaml with the following content:

jms_serializer:
    visitors:
        json:
            options: [JSON_UNESCAPED_UNICODE] 

Save your file and check the bundle config file with the symfony console:

php bin/console debug:config jms_serializer

Current configuration for extension with alias "jms_serializer"
===============================================================

jms_serializer:
    visitors:
        json:
            options: 1216

It should be 256 instead of 1216.

Versions:

  • symfony: 3.4.0
  • jms/serializer-bundle: 2.4.4

Just wanted to know if this problem has been addressed and hopefully fixed in some recent version of the bundle?

Thanks.

Fly06-Fr avatar Aug 30 '23 15:08 Fly06-Fr