Skip to content

Commit 320efe3

Browse files
authored
I think I got it
Sorry, Ryan this is my first time trying to contribute to the docs. I couldn't figure out how to revert a change on GitHub's interface. I think I got it right. Anyway, this has been kind of fun. Thanks! I'm going to read https://symfony.com/doc/current/contributing/documentation/overview.html as well.
1 parent 5eef995 commit 320efe3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Turbo/Resources/doc/index.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,19 @@ Forms
302302

303303
Let's discover how to use Turbo Streams to enhance your `Symfony forms`_::
304304

305+
.. versionadded:: 2.1
306+
307+
In versions prior to 2.1, `TurboStreamResponse::STREAM_FORMAT` was used instead of `TurboBundle::STREAM_FORMAT`. Also, one had to return a new
308+
`TurboStreamResponse()` object as the third argument for this->render().
309+
305310
// src/Controller/TaskController.php
306311
namespace App\Controller;
307312

308313
// ...
309314
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
310315
use Symfony\Component\HttpFoundation\Request;
311316
use Symfony\Component\HttpFoundation\Response;
312-
use Symfony\UX\Turbo\Stream\TurboBundle;
317+
use Symfony\UX\Turbo\TurboBundle;
313318
314319
use App\Entity\Task;
315320

@@ -337,9 +342,7 @@ Let's discover how to use Turbo Streams to enhance your `Symfony forms`_::
337342
return $this->redirectToRoute('task_success', [], Response::HTTP_SEE_OTHER);
338343
}
339344

340-
.. versionadded:: 2.1
341-
342-
In versions prior to 2.1, TurboStreamResponse::STREAM_FORMAT was used instead of TurboBundle::STREAM_FORMAT. Also, one had to return a new TurboStreamResponse() object as the third argument for this->render().
345+
343346
344347
345348
// Symfony 5.3+

0 commit comments

Comments
 (0)