Commit Graph

6 Commits

Author SHA1 Message Date
PJ Dietz c51577a43a Clean up comments. Remove trailing comments after functions and classes, etc. 2012-12-04 14:33:25 -05:00
PJ Dietz b3f997136f Made Response->statusCode into a property and added ->reasonPhrase.
PhpDoc updates.

When you set the ->statusCode to a standard HTTP status code, the instance will set the reason phrase appropriately. You may also set statusCode and reasonPhrase separately, or set them at once by passing two parameters to setStatusCode();
2012-11-30 16:33:04 -05:00
PJ Dietz 5af80d8b1d Move some logic from Router to Route for easier subclassing and better OOP principles. Add comments and PHPDoc blocks. 2012-09-16 22:31:25 -04:00
PJ Dietz 37b75d69d1 Commenting and tidying. 2012-09-08 19:46:11 -04:00
PJ Dietz 44b6e9b118 Change the way Handler goes about building the response. This now happen in the constructor, and Handler::getResponse() returns the Response instance instead of using Handler::respond to trigger the response. 2012-09-08 16:56:54 -04:00
PJ Dietz 6664c73605 Added Handler, Router, and Route classes. 2012-09-03 14:02:49 -04:00