Skip to content

[HttpKernel] Passing arrays as URI attributes to the ESI and SSI renderers #19262

@BoShurik

Description

@BoShurik

Hello!

Passing objects as URI attributes to the ESI and SSI renderers has been deprecated and will be removed in Symfony 4.0. The inline fragment renderer should be used with object attributes.

I have an deprecation error when I try to render

{{ render_esi(controller('AppBundle:Default:widget', { 'data': { 'foo': 'bar' } })) }}

Is this an error in documentation and it's only possible to pass scalars?
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php#L100

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions