From 3e98b3a40ddced69cf0f6b1ea84ace8224075a5c 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 942d5a5baab..c7cccc810db 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