File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -709,14 +709,14 @@ after some specific item count to send the contents to the browser::
709
709
}
710
710
}
711
711
712
- You also have the possibility to directly pass any iterable to
713
- `` StreamedJsonResponse ``, including generators::
712
+ Alternatively, you can also pass any iterable to `` StreamedJsonResponse ``,
713
+ including generators::
714
714
715
715
public function loadArticles(): \Generator
716
716
{
717
- yield ['title' => 'Article 1'];
718
- yield ['title' => 'Article 2'];
719
- yield ['title' => 'Article 3'];
717
+ yield ['title' => 'Article 1'];
718
+ yield ['title' => 'Article 2'];
719
+ yield ['title' => 'Article 3'];
720
720
}
721
721
722
722
public function __invoke(): Response
@@ -728,8 +728,7 @@ You also have the possibility to directly pass any iterable to
728
728
729
729
.. versionadded :: 6.4
730
730
731
- The support for any iterable in ``StreamedJsonResponse `` was introduced in
732
- Symfony 6.4.
731
+ The ``StreamedJsonResponse `` support of iterables was introduced in Symfony 6.4.
733
732
734
733
.. _component-http-foundation-serving-files :
735
734
You can’t perform that action at this time.
0 commit comments