Commit Graph

571 Commits

Author SHA1 Message Date
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 3aca197d7a Updated readme to note optimized static routes 2015-01-01 19:47:05 +00:00
Phil b0c1330a26 Optimized for static routes 2015-01-01 19:44:33 +00:00
PJ Dietz a384a65346 Update README 2015-01-01 12:49:30 -05: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
PJ Dietz 1f6e1f3e9c Merge branch 'master' of https://github.com/eatonphil/wellrested into eatonphil-master 2015-01-01 10:49:33 -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 cf821c1614 Merge pull request #9 from eatonphil/master
Fixed readme syntax error
2014-12-31 10:20:41 -05:00
Phil a2c7a5eb88 Fixed readme syntax error 2014-12-31 15:11:15 +00:00
PJ Dietz 6d499a6643 Add PrefixRoute 2014-12-29 13:09:51 -05:00
PJ Dietz 8b5f9e40a6 Update phpunit. Allow setting port for ClientTest as an environment variable. 2014-12-29 12:49:38 -05:00
PJ Dietz 8f4953c683 Fix links to Wiki in README 2014-08-02 17:47:01 -04:00
PJ Dietz ba90896bd9 Fix links to Wiki in README 2014-08-02 17:45:38 -04:00
PJ Dietz 4a6f678bd3 Remove documentation and point links in README to wiki 2014-08-02 17:42:40 -04: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 a242fc9e5f Update README 2014-07-27 17:28:44 -04:00
PJ Dietz 6e4eb3ba4f Fix links in documentation 2014-07-27 17:10:46 -04:00
PJ Dietz fc702b16e7 Add and update documentation 2014-07-27 17:01:18 -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 9275d12ff0 Fix documentation 2014-07-26 22:52:00 -04:00
PJ Dietz e69d505992 Fix links in documentation 2014-07-26 22:45:42 -04:00
PJ Dietz e77c85f71b Update documentation and README 2014-07-26 22:39:26 -04:00
PJ Dietz 2398fc6b77 Update documentation 2014-07-26 20:05:24 -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 98c4ac0eb8 Update README and add documentation/routes.md 2014-07-26 17:19:48 -04:00
PJ Dietz 95243cb1a8 Merge branch 'two' into two-test 2014-07-26 14:58:38 -04:00
PJ Dietz c8a65f4248 Test captures groups in RegexRouteTest 2014-07-26 14:57:31 -04:00
PJ Dietz bde5fbcf61 Add documentation for Routers and Routes 2014-07-26 14:56:59 -04:00
PJ Dietz 7e3b84ac37 Update README.md
Add Travis build status badge
2014-07-26 13:06:31 -04:00
PJ Dietz 5d77b381f1 Fix .travis.yml 2014-07-26 13:03:02 -04:00
PJ Dietz 991240a3e8 Add Travis and move phpunit.xml to phpunit.xml.dist 2014-07-26 12:44:28 -04:00
PJ Dietz b2ad26acca Update Composer after adding ShamServer to Packagist 2014-07-26 12:37:03 -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 297c4aa2e8 Update tests for Routes 2014-07-26 06:15:17 -04:00
PJ Dietz ea05633dfb Update RouterTest 2014-07-26 05:48:54 -04:00
PJ Dietz 4d31e2e977 Update ResponseBuilder tests. Fix name of ResponseTest 2014-07-26 05:36:42 -04:00
PJ Dietz 1222e61ebb Update Handler tests 2014-07-26 05:20:22 -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 69b9bb51aa Rewrite RequestTest 2014-07-26 01:21:09 -04:00