Right now the formatters have state, you can modify their options, which affects future callers due to the singleton nature of dependency containers. This requires a factory to always be used, which we don't even provide.
Let's move to passing options to format(), making the formatters stateless.
We did the same change in commerceguys/addressing.
Right now the formatters have state, you can modify their options, which affects future callers due to the singleton nature of dependency containers. This requires a factory to always be used, which we don't even provide.
Let's move to passing options to format(), making the formatters stateless.
We did the same change in commerceguys/addressing.