From c29f751d47826e3107744ea8f609a1fe18877b84 Mon Sep 17 00:00:00 2001 From: Tim Glabisch Date: Wed, 7 Jan 2015 02:57:45 +0100 Subject: [PATCH] Controller is a callable --- book/controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/controller.rst b/book/controller.rst index aa4ffb873e6..33dad6ed146 100644 --- a/book/controller.rst +++ b/book/controller.rst @@ -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