From c37c05226821ebc40a836fedf50550a82b33f18c Mon Sep 17 00:00:00 2001 From: Guilherme Ferreira Date: Sun, 28 Aug 2022 22:43:27 +0200 Subject: [PATCH] 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`. --- controller.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.rst b/controller.rst index e72b45a93c5..63d68262a1f 100644 --- a/controller.rst +++ b/controller.rst @@ -59,10 +59,10 @@ This controller is pretty straightforward: * *line 7*: The class can technically be called anything, but it's suffixed with ``Controller`` by convention. -* *line 12*: The action method is allowed to have a ``$max`` argument thanks to the +* *line 10*: The action method is allowed to have a ``$max`` argument thanks to the ``{max}`` :doc:`wildcard in the route `. -* *line 16*: The controller creates and returns a ``Response`` object. +* *line 14*: The controller creates and returns a ``Response`` object. .. index:: single: Controller; Routes and controllers