Commit Graph

13 Commits

Author SHA1 Message Date
PJ Dietz 7d3f4442b4 Code style 2014-07-27 16:52:59 -04:00
PJ Dietz 1a21b2b7d0 Add Client class
Move Request::request() to Client::request()
2014-07-24 20:41:32 -04:00
PJ Dietz aec8bcca4a Fix phpdoc for interfaces, Handler. 2014-07-13 10:12:12 -04:00
PJ Dietz c61b2197ea Remove @package tag from phpdoc throughout. 2014-07-13 09:00:38 -04:00
PJ Dietz 08cf2f4ec2 Fix typos 2014-06-29 10:51:51 -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 12b971dfe6 Add convenience methods to Router
Code cleanup and inspection
2014-06-28 20:12:55 -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 618058850d Add Route classes
Route is now replaced with several classes descending from BaseRoute.
Each of these routes takes care of autoloading and instantiated the
RouteTargetInterface instead of leaving that to the Router.
2014-06-28 18:44:09 -04:00
PJ Dietz a756adf933 Update RequestInterface to inherit from RouteableInterface 2013-08-25 23:05:13 -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 98e04ab63b Define interfaces more clearly and clean up code. 2013-05-26 14:55:48 -04:00