Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixup sensio badgeHEADorigin/masterorigin/HEADmaster | Arnold Daniels | 2017-06-08 | 1 | -1/+1 |
| | |||||
* | Added some text to the README (WIP) | Arnold Daniels | 2017-06-08 | 1 | -0/+32 |
| | | | | Added badges to README | ||||
* | Implicit fn route for Glob router. | Arnold Daniels | 2017-06-08 | 3 | -2/+22 |
| | | | | Passing a closure or invokable object, will be seen as the fn property of a route definition. | ||||
* | Require jasny/php-functions v2 or v3v1.1.2 | Arnold Daniels | 2017-02-28 | 1 | -1/+1 |
| | |||||
* | Revive request for error pagev1.1.1 | Arnold Daniels | 2017-01-30 | 1 | -7/+42 |
| | |||||
* | Run travis tests for PHP 7.1v1.1.0 | Arnold Daniels | 2017-01-24 | 1 | -0/+1 |
| | |||||
* | Removed absolete RunnerTest | Arnold Daniels | 2017-01-24 | 6 | -43/+7 |
| | | | | Fixed @use in tests | ||||
* | Set protocol version for Router::notFound | Arnold Daniels | 2017-01-24 | 2 | -2/+6 |
| | |||||
* | Update to Jasny PHP code quality 2.1 | Arnold Daniels | 2017-01-24 | 13 | -73/+39 |
| | | | | Use Jasny\TestHelper (rather than defining a similar in this lib) | ||||
* | Renamed Routes to RoutesInterface | Arnold Daniels | 2017-01-24 | 12 | -54/+50 |
| | |||||
* | Added RouterInterface | Arnold Daniels | 2017-01-24 | 4 | -10/+59 |
| | |||||
* | Added ability to use Dependency injection | Arnold Daniels | 2016-12-20 | 21 | -410/+727 |
| | | | | | | | | Replaced runner factory with delegated runner Controller runner now uses a factory callable Added ControllerFactory class The ControllerFactory chain another method for instantiation. This can be use to connect a DI container. All runners return not found and trigger a notice if they can't run. rather than throwing an exception. | ||||
* | Merge pull request #20 from jasny/errorpagev1.0.5 | Arnold Daniels | 2016-12-02 | 2 | -127/+110 |
|\ | | | | | Fix ErrorPage middleware | ||||
| * | Rewrite ErrorPage testsorigin/errorpage | Arnold Daniels | 2016-12-02 | 2 | -116/+72 |
| | | |||||
| * | Fix ErrorPage middleware | Arnold Daniels | 2016-11-30 | 1 | -13/+40 |
|/ | | | | If should not change the request when running | ||||
* | Merge pull request #19 from jasny/strict-controller-classv1.0.4 | Arnold Daniels | 2016-11-29 | 4 | -23/+99 |
|\ | | | | | Be strict on translating controller property to class name | ||||
| * | Enforce that the namespace of a controller is done through an arrayorigin/strict-controller-class | Arnold Daniels | 2016-11-29 | 2 | -1/+6 |
| | | | | | | | | Allowing to use a backslash could also lead to security issues | ||||
| * | Be strict on translating controller property to class name | Arnold Daniels | 2016-11-29 | 4 | -24/+95 |
|/ | | | | | | | | Things like `-abc-def-`, `abc--def`, `AbcDef` and `abc_def` should not result in `AbcDef`. Only `abc-def` should. Do a case insensitve match when matching routes. Check if casing of the generated class name matches the casing of the actual class All together, this should prevent security issues. | ||||
* | Merge pull request #18 from jasny/controller-runner-namespacev1.0.3 | Arnold Daniels | 2016-11-29 | 2 | -8/+16 |
|\ | | | | | Use an array as `controller` property to specify the namespace | ||||
| * | Use an array as `controller` property to specify the namespaceorigin/controller-runner-namespace | Arnold Daniels | 2016-11-29 | 2 | -8/+16 |
|/ | |||||
* | Merge pull request #17 from jasny/determine-route-middleware | Arnold Daniels | 2016-11-29 | 2 | -0/+133 |
|\ | | | | | Added determine route middleware | ||||
| * | 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 |