Skip to content

StreamedResponse is not working with BrowserKit after Symfony is upgraded to 6.1 #5780

@fabmlk

Description

@fabmlk

API Platform version(s) affected: ^3.0

Description
This is in direct relation to symfony/symfony#46445 with Symfony ^6.1.

The proposed temporary fix symfony/symfony#46445 (comment) does not work well when using ApiPlatform\Symfony\Bundle\Test\Client as we need to call an internal method:

// $client::getResponse() marked @internal
$content = $client->getResponse()->getBrowserKitResponse()->getContent();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions