Commit Graph

21 Commits

Author SHA1 Message Date
PJ Dietz 7d3f4442b4 Code style 2014-07-27 16:52:59 -04:00
PJ Dietz e77c85f71b Update documentation and README 2014-07-26 22:39:26 -04:00
PJ Dietz 982e048b4f Move HttpExceptions to their own namespace 2014-07-14 01:01:41 -04:00
PJ Dietz 1e32c66cb5 Always clean body on HEAD request 2014-07-14 01:01:15 -04:00
PJ Dietz aec8bcca4a Fix phpdoc for interfaces, Handler. 2014-07-13 10:12:12 -04:00
PJ Dietz 3be61bfb07 Fix phpdoc in Handler 2014-07-13 09:22:13 -04:00
PJ Dietz 47fdc0e31b Add HTTP Exceptions and convert to responses in Handler 2014-07-10 22:47:05 -04:00
PJ Dietz aa06181e40 Refactor DispatcherInterface to HandlerInterface
Update file doc blocks
Code inspection
2014-06-29 10:43:39 -04:00
PJ Dietz 8f99b88d09 Reduce number of interfaces and classes
Remove RouterInterface, Route, and RouteTarget
Change signature of DispatcherInterface::getResponse() to include args
Update classes to match new DispatcherInterface::getResponse()

This update simplifies the API significantly with most classes now
simply needing to implement DispatcherInterface
2014-06-28 19:42:05 -04:00
PJ Dietz e3e98377c3 Track route depth on the Request, not on the Router.
This allows a Handler to use the top-level router and have the depth count match the depth for the current request, not the total.
2013-08-16 18:59:05 -04:00
PJ Dietz 6013198436 Allow Routers to dispatch additional Routers
- RouterInterface and HandlerInterface now share a parent, RouteTargetInterface.
- A Router may now be used as the target for a Route.
- Route's handler member is not replaced by Router's target member.
- Route::getHandler() and Route::setHandler() are deprecated and alias getTarget() and setTarget()
2013-08-16 16:51:09 -04:00
PJ Dietz e693e138d0 Add support for OPTIONS and generate Allow header from Handler. Close #4 2013-05-27 14:13:16 -04:00
PJ Dietz fafce16e9e Update README. Add default 500 error to Router. Close #3 2013-05-27 12:59:55 -04:00
PJ Dietz 98e04ab63b Define interfaces more clearly and clean up code. 2013-05-26 14:55:48 -04:00
PJ Dietz ac752bb446 Add interfaces for requests and responses 2013-05-23 20:26:32 -04:00
PJ Dietz b28b53aa11 Add interfaces for Route and Handler 2013-05-23 19:49:43 -04:00
PJ Dietz 47ec8f5f96 Code cleanup and refactoring 2013-05-19 12:59:57 -04:00
PJ Dietz d0ef6a62fb Updates to documentation for better documentation generation
Refactored WellrestedException to WellRESTedException
2013-01-29 20:59:55 -05:00
PJ Dietz e419aaba7d Add page-level doc blocks to each script
Update comments
Update magic accessors
Update accessor and add islet and unset methods
2013-01-28 22:15:33 -05:00
PJ Dietz 8597b9be06 Refactor for better PSR compliance. Still need to finish with samples. 2013-01-24 21:27:57 -05:00
PJ Dietz 331bdae7ec Refactor library files into src/pjdietz/WellRESTed 2013-01-10 20:54:22 -05:00