Skip to content

Commit c37c052

Browse files
Proper line numbers for a Basic Controller example
The lines that describe the method signature and the method return value (lines `12` and `16`, respectively), should be `10` and `14` since Symfony version `6.0`.
1 parent 8031c55 commit c37c052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ This controller is pretty straightforward:
5959
* *line 7*: The class can technically be called anything, but it's suffixed
6060
with ``Controller`` by convention.
6161

62-
* *line 12*: The action method is allowed to have a ``$max`` argument thanks to the
62+
* *line 10*: The action method is allowed to have a ``$max`` argument thanks to the
6363
``{max}`` :doc:`wildcard in the route </routing>`.
6464

65-
* *line 16*: The controller creates and returns a ``Response`` object.
65+
* *line 14*: The controller creates and returns a ``Response`` object.
6666

6767
.. index::
6868
single: Controller; Routes and controllers

0 commit comments

Comments
 (0)