symfony/symfony — pull request #10832 by guilro (2014-05-01 15:55:40+00:00)
Title: [Templating] #9071 array param for EngineInterface::render()

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | ?
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #9071
| License | MIT
| Doc PR |

We allow an array to be given as param to
Symfony/Component/Templating/EngineInterface::render()
and Symfony/Bundle/FrameworkBundle/Templating
/EngineInterface::renderView(). We modify Symfony\Bridge
\Twig\TwigEngine so it accepts an array as param to
TwigEngine::render(). We add a test for that.
Controller:render() and ::renderView() now accept array as
parameter.

This change asks implementer of `EngineInterface::render()` to accept arrays as parameters, but it will never break existing code, as it is just a change in the docblock, so I do not know if it is a BC break.