You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #287 Wrong class used in turbo streams (htmlshaman1, weaverryan)
This PR was merged into the 2.x branch.
Discussion
----------
Wrong class used in turbo streams
TurboBundle::STREAM_FORMAT doesn't exist, that static variable was moved to TurboStreamResponse::STREAM_FORMAT.
Also the stream didn't work for me unless I changed:
$this->render('task/success.stream.html.twig', ['task' => $task]); to $this->render('task/success.stream.html.twig', ['task' => $task], new TurboStreamResponse());
| Q | A
| ------------- | ---
| Bug fix? | yes/no
| New feature? | yes/no <!-- please update src/**/CHANGELOG.md files -->
| Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.
Additionally (see https://symfony.com/releases):
- Always add tests and ensure they pass.
- Never break backward compatibility (see https://symfony.com/bc).
- Features and deprecations must be submitted against branch main.
-->
Commits
-------
1abee43 minor cleanups
320efe3 I think I got it
5eef995 Added a message about it was done in version 2.0
e411a77 Wrong class used in turbo streams
0 commit comments