Skip to content

Corrected the line references for the basic controller example #6016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Corrected the line references for the basic controller example; added…
… a reference to separate use statement from initial namespacing explanation.
  • Loading branch information
UbiquitousBear committed Dec 15, 2015
commit d576a1fc025ff279cc740324b10052b55dd5632c
6 changes: 4 additions & 2 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ Controllers are also called *actions*.

This controller is pretty straightforward:

* *line 4*: Symfony takes advantage of PHP's namespace functionality to
namespace the entire controller class. The ``use`` keyword imports the
* *line 2*: Symfony takes advantage of PHP's namespace functionality to
namespace the entire controller class.

* *line 4*: Symfony again takes advantage of PHP's namespace functionality: the ``use`` keyword imports the
``Response`` class, which the controller must return.

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