core icon indicating copy to clipboard operation
core copied to clipboard

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

Open fabmlk opened this issue 2 years ago • 0 comments

API Platform version(s) affected: ^3.0

Description
This is in direct relation to https://github.com/symfony/symfony/issues/46445 with Symfony ^6.1.

The proposed temporary fix https://github.com/symfony/symfony/issues/46445#issuecomment-1655564471 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();

fabmlk avatar Aug 28 '23 14:08 fabmlk