Skip to content

Commit 9a94243

Browse files
committed
Fixes from reviewers
1 parent 6d50f77 commit 9a94243

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

components/http_kernel.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ return a ``Response``.
410410
.. sidebar:: ``kernel.view`` in the Symfony Framework
411411

412412
There is a default listener inside the Symfony Framework for the ``kernel.view``
413-
event. If your controller returns an array, and you place the
414-
:ref:`#[Template()] attribute <templates-template-attribute>` above the
415-
controller, then this listener renders a template, passes the array you
416-
returned from your controller to that template, and creates a ``Response``
413+
event. If your controller action returns an array, and you apply the
414+
:ref:`#[Template()] attribute <templates-template-attribute>` to that
415+
controller action, then this listener renders a template, passes the array
416+
you returned from your controller to that template, and creates a ``Response``
417417
containing the returned content from that template.
418418

419419
Additionally, a popular community bundle `FOSRestBundle`_ implements

templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ to define the template to render::
484484
class ProductController extends AbstractController
485485
{
486486
#[Template('product/index.html.twig')]
487-
public function index(): Response
487+
public function index()
488488
{
489489
// ...
490490

0 commit comments

Comments
 (0)