From 2b61e3bc65dd018c921d12952fe78e839f8e2c21 Mon Sep 17 00:00:00 2001 From: Loulier Guillaume Date: Fri, 16 Feb 2018 20:47:00 +0100 Subject: [PATCH 1/2] suggest(Controller): suggestion about naming habits --- controller.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.rst b/controller.rst index b93d74cfc7b..f72d7d0194a 100644 --- a/controller.rst +++ b/controller.rst @@ -58,8 +58,8 @@ This controller is pretty straightforward: the ``use`` keyword imports the ``Response`` class, which the controller must return. -* *line 7*: The class can technically be called anything - but should end in the - word ``Controller`` +* *line 7*: The class can technically be called anything, + it is common to use `Controller` at the end. * *line 12*: The action method is allowed to have a ``$max`` argument thanks to the ``{max}`` :doc:`wildcard in the route `. From 5b29f5b14db7f45e196fb588bceae33656ac3972 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 18 Feb 2018 11:41:50 +0100 Subject: [PATCH 2/2] Minor reword --- controller.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.rst b/controller.rst index f72d7d0194a..e73ece41c7a 100644 --- a/controller.rst +++ b/controller.rst @@ -58,8 +58,8 @@ This controller is pretty straightforward: the ``use`` keyword imports the ``Response`` class, which the controller must return. -* *line 7*: The class can technically be called anything, - it is common to use `Controller` at the end. +* *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 ``{max}`` :doc:`wildcard in the route `.