Skip to content

Commit

Permalink
minor #4788 Controller is a callable (timglabisch)
Browse files Browse the repository at this point in the history
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4788).

Discussion
----------

Controller is a callable

Hello,

i am not sure about this PR but the statement ``A controller is a PHP function`` is wrong.
A controller can be everything that is callable by php.

Commits
-------

3e98b3a Controller is a callable
  • Loading branch information
wouterj committed Jan 8, 2015
2 parents 28571fc + 3e98b3a commit 74c3a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Controller
==========

A controller is a PHP function you create that takes information from the
A controller is a PHP callable you create that takes information from the
HTTP request and constructs and returns an HTTP response (as a Symfony
``Response`` object). The response could be an HTML page, an XML document,
a serialized JSON array, an image, a redirect, a 404 error or anything else
Expand Down

0 comments on commit 74c3a35

Please sign in to comment.