symfony/symfony — pull request #4938 by beberlei (2012-07-16 09:07:47+00:00)
Title: [Serializer] Configurable Serializer

Allow options to be passed to SerializerInterface#serialize and #unserialize. Thsee options are available to all encoders/decoders/normalizers that implement SerializerAwareInterface.

Bug fix: no
Feature addition: yes
Backwards compatibility break: yes
Symfony2 tests pass: yes
Fixes the following tickets: Ticket GH-4907
License of the code: MIT
Todo:
- Discussion if this is the right approach.
- Add a setOptions() method
- Merging of global and invocation options? Or only allow invocation specific methods?

This is one attempt to solve GH-4907