Update documentation on Router and Message
This commit is contained in:
parent
6a642dfed2
commit
8aa6b91d91
|
|
@ -34,6 +34,9 @@ abstract class Message
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new HTTP message.
|
||||||
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->headers = array();
|
$this->headers = array();
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue