Update documentation on Router and Message

This commit is contained in:
PJ Dietz 2014-07-13 17:41:52 -04:00
parent 6a642dfed2
commit 8aa6b91d91
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,9 @@ abstract class Message
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
/**
* Create a new HTTP message.
*/
public function __construct() public function __construct()
{ {
$this->headers = array(); $this->headers = array();

View File

@ -79,6 +79,9 @@ class Router implements HandlerInterface
} }
} }
/**
* Dispatch the singleton Request through the router and output the response.
*/
public function respond() { public function respond() {
$response = $this->getResponse(Request::getRequest()); $response = $this->getResponse(Request::getRequest());
$response->respond(); $response->respond();