Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f183cf

Browse files
committed
minor #6016 Corrected the line references for the basic controller example (theTeddyBear)
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #6016). Discussion ---------- Corrected the line references for the basic controller example | Q | A | ------------- | --- | Doc fix? | yes | New docs? |no | Applies to | 2.8+ | Fixed tickets | n/a Corrected the line references for the basic controller example; added a reference to separate use statement from initial namespacing explanation. Commits ------- 82a1808 Corrected the line references for the basic controller example; added a reference to separate use statement from initial namespacing explanation.
2 parents d37b059 + 82a1808 commit 1f183cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

book/controller.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ Controllers are also called *actions*.
116116

117117
This controller is pretty straightforward:
118118

119-
* *line 4*: Symfony takes advantage of PHP's namespace functionality to
120-
namespace the entire controller class. The ``use`` keyword imports the
119+
* *line 2*: Symfony takes advantage of PHP's namespace functionality to
120+
namespace the entire controller class.
121+
122+
* *line 4*: Symfony again takes advantage of PHP's namespace functionality: the ``use`` keyword imports the
121123
``Response`` class, which the controller must return.
122124

123125
* *line 6*: The class name is the concatenation of a name for the controller

0 commit comments

Comments
 (0)