Skip to content

Commit

Permalink
class headers for Dispatcher, Request and Response
Browse files Browse the repository at this point in the history
  • Loading branch information
alkemann committed Oct 31, 2009
1 parent 8cb1063 commit 5ff5af1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libraries/lithium/action/Dispatcher.php
Expand Up @@ -14,6 +14,18 @@
use \lithium\core\Libraries;
use \lithium\core\Environment;

/**
* `Dispatcher` is the outermost layer of the framework (including app), responsible for both
* recieving the initial http request and sending back the response at the end of the cycle.
*
* After interpreting the request and making a `Request` instance, it initiates the correct
* `Controller` and passes it the `Request` object. When the `Controller` returns a `Response`,
* `Dispatcher`, where the headers and content are rendered and sent to the browser.
*
* @see lithium\action\request
* @see lithium\action\response
* @see lithium\action\controller
*/
class Dispatcher extends \lithium\core\StaticObject {

/**
Expand Down
5 changes: 5 additions & 0 deletions libraries/lithium/action/Request.php
Expand Up @@ -10,6 +10,11 @@

use \lithium\util\Validator;

/**
* Request is responsible for identifying and storing all the information about the http request.
*
* @see lithium\action\Dispatcher
*/
class Request extends \lithium\core\Object {

public $url = null;
Expand Down
7 changes: 7 additions & 0 deletions libraries/lithium/action/Response.php
Expand Up @@ -10,6 +10,13 @@

use \Exception;

/**
* The `Response` instance is what the `Controller` returns to the `Dispatcher` as the product
* of the view layer. See related classes for more details.
*
* @see lithium\action\Dispatcher
* @see lithium\action\Controller
*/
class Response extends \lithium\http\Response {

protected $_config = array();
Expand Down

0 comments on commit 5ff5af1

Please sign in to comment.