Skip to content

BUGFIX: Respect psr buffer streams and use them for string streams#3333

Draft
mhsdesign wants to merge 2 commits intoneos:9.0from
mhsdesign:task/usePsrBufferStreamForStringStreams
Draft

BUGFIX: Respect psr buffer streams and use them for string streams#3333
mhsdesign wants to merge 2 commits intoneos:9.0from
mhsdesign:task/usePsrBufferStreamForStringStreams

Conversation

@mhsdesign
Copy link
Member

the idea is that this is more light weight instead of creating a memory resource.

see https://neos-project.slack.com/archives/C050KKBEB/p1710320388608069

Originally meant as part of #3286, but we dont support buffer streams yet fully in all places.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

The `BufferStream` is simpler as it operates just on a simple string
```
Cannot seek a BufferStream

GuzzleHttp\Psr7\BufferStream::seek(0)
GuzzleHttp\Psr7\BufferStream::rewind()
Neos\Flow\Mvc\ActionResponse::getContent()
Neos\FluidAdaptor\Core\Widget\AbstractWidgetViewHelper::initiateSubRequest(
```
@mhsdesign mhsdesign force-pushed the task/usePsrBufferStreamForStringStreams branch from d640fc6 to a7ff07b Compare April 24, 2024 19:02
@mhsdesign mhsdesign changed the title TASK: Use psr buffer stream for string streams BUGFIX: Respect psr buffer streams and use them for string streams Jun 22, 2024
@github-actions github-actions bot added the Bug label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant