PJ Dietz
|
3d68a0af86
|
Add RouteFactory
|
2015-02-20 07:45:39 -05:00 |
PJ Dietz
|
04561076d5
|
Update Router to work with updated Routes and ErrorHandlers
Deprecate:
- Router::setStaticRoute
- Router::setPrefixRoute
|
2015-02-19 22:04:34 -05:00 |
PJ Dietz
|
4deac492dd
|
Update BaseRoute to use HandlerUnpacker
|
2015-02-19 19:59:33 -05:00 |
PJ Dietz
|
5dc5cdab06
|
Add HandlerUnpacker
|
2015-02-19 19:51:42 -05:00 |
PJ Dietz
|
c38659a310
|
Update TemplateRoute tests
|
2015-02-18 21:39:07 -05:00 |
PJ Dietz
|
6859bd9707
|
Update RegexRoute tests
|
2015-02-18 21:21:56 -05:00 |
PJ Dietz
|
63fd00fff0
|
Update PrefixRoute tests
|
2015-02-18 20:47:45 -05:00 |
PJ Dietz
|
38aaf26943
|
Update StaticRoute tests to use Prophecy
|
2015-02-18 20:47:00 -05:00 |
PJ Dietz
|
9498542f30
|
Allow Route target to be a callable, string, or instance
|
2015-02-18 20:17:09 -05:00 |
PJ Dietz
|
38639d9ee4
|
Update TemplateRouter to better match templates with variables in more complicated paths
|
2015-02-02 17:08:25 -05:00 |
PJ Dietz
|
84044d5057
|
Re-add converting HttpExceptions to responses in Handler
|
2015-01-21 11:03:01 -05:00 |
PJ Dietz
|
1a88e0273d
|
Use registered 404 error handler when no route matches in Router::respond
|
2015-01-21 09:51:14 -05:00 |
PJ Dietz
|
ca2c8625ec
|
Store PrefixRoutes to a separate array.
Prioritize routes in the order static, prefix, everything else.
|
2015-01-02 13:13:08 -05:00 |
PJ Dietz
|
caef817535
|
Do not allow routing to continue after a dispatched StaticRoute returns null
|
2015-01-02 12:31:02 -05:00 |
PJ Dietz
|
78fe57d736
|
Store StaticRoutes to separate hash array in Router
Add StaticRouteInterface
|
2015-01-02 12:00:30 -05:00 |
Phil
|
6ae85398db
|
Just making silly mistakes now...
|
2015-01-01 20:43:07 +00:00 |
Phil
|
b6ec262d0e
|
Forgot to catch exceptions in static routes
|
2015-01-01 20:38:57 +00:00 |
Phil
|
451a1c0576
|
Trying to stop not set error...
|
2015-01-01 20:27:45 +00:00 |
Phil
|
aaaf644118
|
Initialized response to null to be safe
|
2015-01-01 20:21:17 +00:00 |
Phil
|
bb052625af
|
Made sure not to iterate over StaticRoutes again because the key they map to is a specific child Handler
|
2015-01-01 20:17:48 +00:00 |
Phil
|
b0c1330a26
|
Optimized for static routes
|
2015-01-01 19:44:33 +00:00 |
PJ Dietz
|
666f45977e
|
Merge branch 'eatonphil-master' into prefix
|
2015-01-01 12:43:41 -05:00 |
PJ Dietz
|
9eec436ad4
|
Add error handlers to Router
Move catching HttpExceptions and translating into responses from Handler to Router
|
2015-01-01 12:41:53 -05:00 |
Phil
|
07c55bb70b
|
no error handlers case
|
2014-12-31 21:12:29 +00:00 |
Phil
|
cc17ebbe48
|
Added support for custom error handlers
|
2014-12-31 21:06:06 +00:00 |
PJ Dietz
|
6d499a6643
|
Add PrefixRoute
|
2014-12-29 13:09:51 -05:00 |
PJ Dietz
|
75088499b8
|
Ensure $args propagate from Router to Handlers
|
2014-08-02 17:42:16 -04:00 |
PJ Dietz
|
512897effd
|
Prefer apache_request_headers when reading request headers.
Apache does not pass the Authorization header through to PHP as
$_SERVER["HTTP_AUTHORIZATION"], so reading from $_SERVER is not viable
with Apache.
|
2014-07-28 12:43:29 -04:00 |
PJ Dietz
|
46f11b2b9b
|
Fix Request for PHP 5.3.0 compatibility
|
2014-07-28 10:08:27 -04:00 |
PJ Dietz
|
7d3f4442b4
|
Code style
|
2014-07-27 16:52:59 -04:00 |
PJ Dietz
|
d1a77c5454
|
Allow * wildcard at end of URI template
|
2014-07-27 16:37:24 -04:00 |
PJ Dietz
|
e77c85f71b
|
Update documentation and README
|
2014-07-26 22:39:26 -04:00 |
PJ Dietz
|
1c5d95e727
|
Router::getResponse() now returns null to allow better nesting
Runs tests that output responses in process isolation
|
2014-07-26 19:05:38 -04:00 |
PJ Dietz
|
60eaabadd5
|
Update phpdoc for Client
|
2014-07-26 11:59:46 -04:00 |
PJ Dietz
|
4db7c8da7d
|
Add Request::getFormFields. Add Test for sending form-encoded request
|
2014-07-26 11:49:15 -04:00 |
PJ Dietz
|
4ae6e5f2e4
|
Fix issue in Response when setting headers in constructor
Update tests for Response
|
2014-07-26 01:47:05 -04:00 |
PJ Dietz
|
3d1690404e
|
Add Request::setFormFields
|
2014-07-26 01:20:51 -04:00 |
PJ Dietz
|
3d44d1a3f5
|
Test sending body with Client
|
2014-07-25 23:08:27 -04:00 |
PJ Dietz
|
70c2ef1150
|
Fix problem where Client did not set headers.
|
2014-07-25 14:29:04 -04:00 |
PJ Dietz
|
1a21b2b7d0
|
Add Client class
Move Request::request() to Client::request()
|
2014-07-24 20:41:32 -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
|
ecb58c11b8
|
Clean up unused imports
|
2014-07-14 01:00:38 -04:00 |
PJ Dietz
|
b601c38d36
|
Add tests for Router
|
2014-07-14 00:19:04 -04:00 |
PJ Dietz
|
794d0901b9
|
Fix documentation and add tests for Response
|
2014-07-13 23:56:19 -04:00 |
PJ Dietz
|
581c3d1351
|
Update documentation and add tests for Request
|
2014-07-13 21:39:01 -04:00 |
PJ Dietz
|
8aa6b91d91
|
Update documentation on Router and Message
|
2014-07-13 17:41:52 -04:00 |
PJ Dietz
|
6a642dfed2
|
Fix documentation and add tests for BaseRoute
|
2014-07-13 17:18:08 -04:00 |
PJ Dietz
|
e597926634
|
Fix documentation and add tests for TemplateRoute
|
2014-07-13 17:08:15 -04:00 |
PJ Dietz
|
f11c13c1b3
|
Fix documentation and add tests for RegexRoute
|
2014-07-13 16:27:09 -04:00 |