Skip to content

Commit 2e76707

Browse files
committed
minor symfony#9282 Controller naming habits (Guikingone, javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Controller naming habits As Symfony isn't an `MVC` framework but a `Request/Response` one (see symfony#8153 (comment)), the name of the class which handles the Request isn't forced to contain `Controller`, it's probably more a common usage than a need to make Symfony works. Commits ------- 5b29f5b Minor reword 2b61e3b suggest(Controller): suggestion about naming habits
2 parents 50911a3 + 5b29f5b commit 2e76707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ This controller is pretty straightforward:
5858
the ``use`` keyword imports the ``Response`` class, which the controller
5959
must return.
6060

61-
* *line 7*: The class can technically be called anything - but should end in the
62-
word ``Controller``
61+
* *line 7*: The class can technically be called anything, but it's suffixed
62+
with ``Controller`` by convention.
6363

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

0 commit comments

Comments
 (0)