Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added determine route middlewareorigin/determine-route-middleware | Arnold Daniels | 2016-11-29 | 2 | -0/+133 |
| | | | | This middleware can determine the route at forehand, so it can be used by other middleware | ||||
* | Merge pull request #16 from jasny/glob-stdclass-routes | Arnold Daniels | 2016-11-29 | 2 | -3/+27 |
|\ | | | | | Support taking stdClass instead of an array as route list | ||||
| * | Support taking stdClass instead of an array as route listorigin/glob-stdclass-routes | Arnold Daniels | 2016-11-29 | 2 | -3/+27 |
|/ | |||||
* | Merge pull request #15 from jasny/controller-runner-notfound | Arnold Daniels | 2016-11-29 | 3 | -26/+81 |
|\ | | | | | Let the controller runner return a not found response | ||||
| * | Merge branch 'master' into controller-runner-notfoundorigin/controller-runner-notfound | Arnold Daniels | 2016-11-29 | 3 | -14/+176 |
| |\ | |/ |/| | |||||
* | | Merge pull request #14 from jasny/middleware-path | Arnold Daniels | 2016-11-29 | 3 | -14/+176 |
|\ \ | | | | | | | Specify a path when adding middleware | ||||
| * | | Added tests for adding middleware with a pathorigin/middleware-path | Arnold Daniels | 2016-11-29 | 2 | -2/+71 |
| | | | |||||
| * | | Reversed the middleware order | Arnold Daniels | 2016-11-29 | 2 | -8/+13 |
| | | | | | | | | | | | | Fixed Router middleware tests | ||||
| * | | Specify a path when adding middleware | Arnold Daniels | 2016-11-29 | 3 | -11/+99 |
|/ / | |||||
| * | Let the controller runner return a not found response | Arnold Daniels | 2016-11-29 | 3 | -26/+81 |
|/ | | | | If the controller class doesn't exist of isn't invocable, a noticed is issued and a 404 not found response is returned, instead of throwing an Exception. | ||||
* | Fix testsv1.0.2 | Arnold Daniels | 2016-11-22 | 2 | -8/+13 |
| | |||||
* | Fix issue with splitUrl in Glob::getRoute | Arnold Daniels | 2016-11-22 | 1 | -1/+1 |
| | |||||
* | Prepend 'Controller' to controller class | Arnold Daniels | 2016-11-22 | 2 | -8/+10 |
| | |||||
* | Fix issue with Routes\Glob not working with full urlv1.0.1 | Arnold Daniels | 2016-11-22 | 2 | -17/+29 |
| | |||||
* | Merge pull request #13 from jasny/fix-testsv1.0.0 | Arnold Daniels | 2016-11-03 | 30 | -1429/+1597 |
|\ | | | | | Fix tests | ||||
| * | Move route binding (used in Glob) to a traitorigin/fix-tests | Arnold Daniels | 2016-11-03 | 6 | -423/+636 |
| | | | | | | | | | | Added tests for Route Added missing @covers | ||||
| * | Improved tests for Routes/Glob | Arnold Daniels | 2016-11-03 | 4 | -140/+238 |
| | | |||||
| * | Error handler has moved to it's own library | Arnold Daniels | 2016-10-30 | 4 | -142/+4 |
| | | |||||
| * | Use mocks for NotFound middleware | Arnold Daniels | 2016-10-25 | 2 | -221/+191 |
| | | |||||
| * | Minor fixes for Middleware\BasePath tests | Arnold Daniels | 2016-10-21 | 2 | -83/+83 |
| | | |||||
| * | Use vfsStream for Runner\PhpScript tests | Arnold Daniels | 2016-10-21 | 3 | -64/+112 |
| | | |||||
| * | Put RunnerFactory one dir up | Arnold Daniels | 2016-10-20 | 8 | -47/+72 |
| | | | | | | | | | | Fix RunnerFactory tests Started with putting the tests in namespaces | ||||
| * | Use mock for Runner\Controller | Arnold Daniels | 2016-10-20 | 2 | -131/+80 |
| | | | | | | | | `Runner\Controller::instantiate()` doesn't have to be covered with tests | ||||
| * | Test Runner\Callback RuntimeException | Arnold Daniels | 2016-10-20 | 1 | -1/+35 |
| | | |||||
| * | Use mocks for Runner\Callback | Arnold Daniels | 2016-10-20 | 3 | -53/+26 |
| | | | | | | | | Fix bug in Runner\Callback | ||||
| * | Use mocks for RunnerTest | Arnold Daniels | 2016-10-20 | 5 | -50/+63 |
| | | | | | | | | Put createCallbackMock in a trait | ||||
| * | Rewritten Router tests, mocking all other objects | Arnold Daniels | 2016-10-20 | 2 | -191/+169 |
| | | |||||
| * | Use Runner\Controller::instantiateController() to create a controller | Arnold Daniels | 2016-10-20 | 3 | -20/+29 |
| | | | | | | | | Minor code cleanup | ||||
| * | Router takes a Routes object, not an array | Arnold Daniels | 2016-10-20 | 1 | -34/+30 |
|/ | | | | Minor code improvements in Router class | ||||
* | Merge remote-tracking branch 'origin/router-cleanup' | Arnold Daniels | 2016-10-20 | 12 | -14/+1139 |
|\ | |||||
| * | Merge pull request #10 from Minstel/middleware-errorsorigin/router-cleanup | Arnold Daniels | 2016-10-20 | 7 | -12/+379 |
| |\ | | | | | | | Middleware errors | ||||
| | * | 'Error Handler' middleware | minstel | 2016-10-17 | 2 | -0/+140 |
| | | | |||||
| | * | 'Error page' middleware. Switched names for router 'run' and 'handle' methods | minstel | 2016-10-17 | 5 | -12/+239 |
| | | | |||||
| * | | Merge pull request #9 from Minstel/middleware-base-path | Arnold Daniels | 2016-10-19 | 2 | -0/+353 |
| |\ \ | | | | | | | | | 'Base Path' middleware | ||||
| | * | | Fixes | minstel | 2016-10-19 | 2 | -81/+31 |
| | | | | |||||
| | * | | 'Base Path' middleware | minstel | 2016-10-17 | 2 | -0/+403 |
| | |/ | |||||
| * | | Merge pull request #7 from Minstel/router-cleanup | Arnold Daniels | 2016-10-18 | 4 | -3/+408 |
| |\ \ | | | | | | | | | 'Not found' middleware | ||||
| | * | | Major fixes to 'NotFound' and it's tests | minstel | 2016-10-14 | 2 | -50/+126 |
| | | | | |||||
| | * | | Fixes to prev commit | minstel | 2016-10-13 | 2 | -42/+41 |
| | | | | |||||
| | * | | 'Not found' middleware | minstel | 2016-10-13 | 4 | -3/+333 |
| | |/ | |||||
* | | | Merge pull request #12 from Minstel/Add_the_route_as_ServerRequest_attribute | Arnold Daniels | 2016-10-18 | 12 | -107/+169 |
|\ \ \ | | | | | | | | | Add the route as ServerRequest attribute | ||||
| * | | | Minor cleanup Runner::getFactory() | Arnold Daniels | 2016-10-18 | 1 | -1/+5 |
| | | | | |||||
| * | | | Merge branch 'master' into Add_the_route_as_ServerRequest_attribute | Arnold Daniels | 2016-10-18 | 1 | -0/+1 |
| |\ \ \ | |/ / / |/| | | | |||||
* | | | | Merge remote-tracking branch 'origin/router-cleanup' into glob-tests | Arnold Daniels | 2016-10-17 | 13 | -615/+876 |
|\ \ \ \ | | |/ / | |/| | | |||||
| * | | | Merge pull request #5 from Minstel/router-cleanup | Arnold Daniels | 2016-10-12 | 11 | -54/+502 |
| |\ \ \ | | | |/ | | |/| | Implementation and tests for Router. Minor fixes | ||||
* | | | | Merge pull request #8 from jasny/glob-tests | Arnold Daniels | 2016-10-13 | 3 | -24/+22 |
|\ \ \ \ | | | | | | | | | | | Minor fixes in tests and code | ||||
| * | | | | use php code quality v2origin/glob-tests | Arnold Daniels | 2016-10-13 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Needless use | Arnold Daniels | 2016-10-13 | 1 | -1/+0 |
| | | | | | |||||
| * | | | | Use phpunit 5's createMock rather than getMock | Arnold Daniels | 2016-10-13 | 3 | -24/+23 |
|/ / / / | | | | | | | | | | | | | Minor fixes in tests and code | ||||
* | | | | Added travis config and added badges to README | Arnold Daniels | 2016-10-10 | 2 | -0/+22 |
| | | | | |||||
| | | * | Minor fix | minstel | 2016-10-17 | 1 | -1/+1 |
| | | | | |||||
| | | * | Implemented RunnerFactory | minstel | 2016-10-17 | 6 | -56/+135 |
| | | | | |||||
| | | * | use php code quality v2 | Arnold Daniels | 2016-10-17 | 1 | -3/+3 |
| | | | | |||||
| | | * | Needless use | Arnold Daniels | 2016-10-17 | 1 | -1/+0 |
| | | | | |||||
| | | * | Use phpunit 5's createMock rather than getMock | Arnold Daniels | 2016-10-17 | 2 | -18/+18 |
| | | | | | | | | | | | | | | | | Minor fixes in tests and code | ||||
| | | * | Added travis config and added badges to README | Arnold Daniels | 2016-10-17 | 2 | -0/+22 |
| | | | | |||||
| | | * | Add the route as ServerRequest attribute | minstel | 2016-10-17 | 10 | -53/+32 |
| | |/ | |||||
| | * | Add and run middlewares in Router | minstel | 2016-10-12 | 2 | -13/+152 |
| | | | |||||
| | * | Implementation and tests for Router. Minor fixes | minstel | 2016-10-11 | 11 | -54/+211 |
| | | | |||||
| | * | Implementation as tests for Runner/Controller | minstel | 2016-10-11 | 2 | -1/+153 |
| |/ | |||||
| * | The Router::invoke method should not be final | Arnold Daniels | 2016-10-10 | 1 | -2/+2 |
| | | |||||
| * | Removed base class as well. It can come back as middleware. | Arnold Daniels | 2016-10-10 | 1 | -36/+0 |
| | | |||||
| * | Removed all functionality that's in PSR-7 or Routes / Runner. | Arnold Daniels | 2016-10-10 | 1 | -469/+33 |
| | | | | | | | | Added baseline for `handle` function | ||||
| * | Moved Router.php to correct dir | Arnold Daniels | 2016-10-10 | 1 | -0/+0 |
| | | |||||
| * | Merge pull request #2 from Minstel/runner | Arnold Daniels | 2016-10-10 | 9 | -56/+319 |
| |\ | | | | | | | Added test for Runner class. Minor fixes | ||||
| | * | Implementation and test for Runner/PhpScript | minstel | 2016-10-10 | 3 | -11/+102 |
| | | | |||||
| | * | Implementation and tests for Runner/Callback. Minor fixes | minstel | 2016-10-08 | 3 | -10/+86 |
| | | | |||||
| | * | Added test for Runner class. Minor fixes | minstel | 2016-10-08 | 7 | -49/+145 |
| |/ | |||||
| * | Added abstract Runner::run() method and make __invoke() call it. | Arnold Daniels | 2016-10-07 | 1 | -3/+23 |
|/ | |||||
* | Start of Runner class. | Arnold Daniels | 2016-10-07 | 4 | -12/+62 |
| | | | | The Route class no longer has an execute method, instead a Runner should be used. | ||||
* | Please Route in Jasny\Router namespace | Arnold Daniels | 2016-10-07 | 5 | -8/+8 |
| | |||||
* | Require jasny/php-code-quality | Arnold Daniels | 2016-10-07 | 2 | -7/+9 |
| | |||||
* | Merge pull request #1 from Minstel/master | Arnold Daniels | 2016-10-06 | 6 | -43/+487 |
|\ | | | | | Created tests for Router/Routes/Glob | ||||
| * | Created tests for Router/Routes/Glob | minstel | 2016-10-06 | 6 | -43/+487 |
|/ | |||||
* | Added Route class (WIP) | Arnold Daniels | 2016-10-04 | 9 | -180/+608 |
| | | | | | Added trait for url parsing Added Glob routes | ||||
* | Basic readme | Arnold Daniels | 2016-08-17 | 1 | -3/+13 |
| | |||||
* | Split out Router as standalone lib | Arnold Daniels | 2016-08-17 | 7 | -1484/+8 |
| | |||||
* | Fix casting to associated array in Router::bind() | Arnold Daniels | 2016-06-22 | 1 | -3/+6 |
| | |||||
* | Fix routing to a method | Arnold Daniels | 2016-06-20 | 1 | -2/+6 |
| | | | | Make Router::routeTo public | ||||
* | Use studlycase, fixing route controller class name | Arnold Daniels | 2016-03-10 | 1 | -2/+2 |
| | |||||
* | Fixup Router::fnmatch | Arnold Daniels | 2016-03-10 | 2 | -4/+4 |
| | | | | Fix add trailing \ for Jasny function | ||||
* | Updated to jasny/php-function v2 | Arnold Daniels | 2016-03-10 | 3 | -4/+4 |
| | |||||
* | Use stripos to find header for Request::getOutputFormat() | Arnold Daniels | 2016-01-24 | 1 | -1/+1 |
| | |||||
* | Fixed Request::outputErrorListAsHTML() | Arnold Daniels | 2016-01-24 | 1 | -2/+2 |
| | |||||
* | Added return for POST case in getInput() | Zlatan Menkovic | 2015-09-11 | 1 | -1/+1 |
| | |||||
* | Fixup | Arnold Daniels | 2015-09-11 | 1 | -5/+6 |
| | |||||
* | Fixes for outputting text and html errors | Arnold Daniels | 2015-09-10 | 1 | -41/+46 |
| | | | | Set http status code Output an array with a single error as single string instead of list | ||||
* | Added Request::getClientIp() method | Arnold Daniels | 2015-09-02 | 1 | -0/+30 |
| | |||||
* | Removed list of http status codes | Arnold Daniels | 2015-08-10 | 1 | -33/+0 |
| | |||||
* | Removed error handler from router | Arnold Daniels | 2015-08-10 | 2 | -94/+7 |
| | | | | Removed camelcase method from router, using jasny/php_functions Use fnmatch_extended from jasny/php_functions | ||||
* | Get arguments by name if route->args isn't defined | Arnold Daniels | 2015-08-10 | 1 | -18/+62 |
| | |||||
* | Fixed request method override | Arnold Daniels | 2015-03-10 | 1 | -1/+1 |
| | |||||
* | Merge pull request #8 from moesjarraf/master | Arnold Daniels | 2015-03-04 | 2 | -2/+2 |
|\ | | | | | Revert Router and fix for Controller | ||||
| * | Revert Router and fix for Controller | moesjarraf | 2015-03-04 | 2 | -2/+2 |
|/ | |||||
* | Fixed routing with use of base path | root | 2014-12-01 | 1 | -1/+1 |
| | |||||
* | Fixed passing HTTP code from controller | Arnold Daniels | 2014-11-03 | 1 | -6/+6 |
| | |||||
* | Added 409 and 429 response functions to Controller | Arnold Daniels | 2014-10-29 | 1 | -5/+35 |
| | | | | Controller::conflict() gives a 409 response Controller::tooManyRequests() gives a 429 response | ||||
* | Fixed issues with getting input format | Arnold Daniels | 2014-10-29 | 2 | -4/+13 |
| | | | | Sometime HTTP_CONTENT_TYPE is set instead of CONTENT_TYPE Die after routing to unsupported media type in router | ||||
* | Added outline for Request::setCachingPolicy() | Arnold Daniels | 2014-10-11 | 1 | -0/+18 |
| | |||||
* | Fix Router::badRequest | Arnold Daniels | 2014-10-11 | 1 | -2/+5 |
| |