8000 Tweaks · symfony/symfony-docs@c39d5b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c39d5b2

Browse files
committed
Tweaks
1 parent e9a608f commit c39d5b2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

components/http_foundation.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -709,14 +709,14 @@ after some specific item count to send the contents to the browser::
709709
}
710710
}
711711

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::
714714

715715
public function loadArticles(): \Generator
716716
{
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'];
720720
}
721721

722722
public function __invoke(): Response
@@ -728,8 +728,7 @@ You also have the possibility to directly pass any iterable to
728728

729729
.. versionadded:: 6.4
730730

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.
733732

734733
.. _component-http-foundation-serving-files:
735734

0 commit comments

Comments
 (0)
0