Skip to content

symfony/json_streamer 8.0 not working with api-platform and leads to error #7627

@michaljusiega

Description

@michaljusiega

API Platform version(s) affected: 4.2.11

Description
Hi! I'm facing error as described in title. symfony/json_streamer 8.0 configuration doesn't work with the latest APIPlatform, due to invalid configuration where a parameter is needed and that does not exist anymore.

How to reproduce
'enable_json_streamer' => true in configuration for ApiPlatform and configuration for Framework Bundle below

return App::config(config: [
    'framework' => [
        'json_streamer' => ['enabled' => true],
    ],
]);

Possible Solution
¯\_(ツ)_/¯ it's seems to working with 7.4, not 8.0

Additional Context
Configuration require a parameter in https://github.com/api-platform/core/blob/main/src/Symfony/Bundle/Resources/config/json_streamer/common.php#L34-35

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions