mirror of
https://github.com/symfony/ai-platform.git
synced 2026-03-23 23:12:22 +01:00
This adds support for passing objects as template variables by normalizing
them to arrays before template rendering. The normalizer is optional and
configurable via constructor injection.
New features:
- Object serialization in template_vars via optional NormalizerInterface
- normalizer_context option in template_options for controlling serialization
- Nested array flattening with dot notation support (e.g., {city.name})
- Null value handling (rendered as empty string)