Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implicit fn route for Glob router. | Arnold Daniels | 2017-06-08 | 1 | -0/+16 |
| | | | | Passing a closure or invokable object, will be seen as the fn property of a route definition. | ||||
* | Removed absolete RunnerTest | Arnold Daniels | 2017-01-24 | 5 | -43/+4 |
| | | | | Fixed @use in tests | ||||
* | Update to Jasny PHP code quality 2.1 | Arnold Daniels | 2017-01-24 | 9 | -27/+30 |
| | | | | Use Jasny\TestHelper (rather than defining a similar in this lib) | ||||
* | Renamed Routes to RoutesInterface | Arnold Daniels | 2017-01-24 | 3 | -14/+14 |
| | |||||
* | Added RouterInterface | Arnold Daniels | 2017-01-24 | 1 | -4/+4 |
| | |||||
* | Added ability to use Dependency injection | Arnold Daniels | 2016-12-20 | 8 | -220/+388 |
| | | | | | | | | 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. | ||||
* | Rewrite ErrorPage testsorigin/errorpage | Arnold Daniels | 2016-12-02 | 1 | -114/+72 |
| | |||||
* | Enforce that the namespace of a controller is done through an arrayorigin/strict-controller-class | Arnold Daniels | 2016-11-29 | 1 | -0/+5 |
| | | | | 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 | 2 | -14/+37 |
| | | | | | | | | 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. | ||||
* | Use an array as `controller` property to specify the namespaceorigin/controller-runner-namespace | Arnold Daniels | 2016-11-29 | 1 | -5/+13 |
| | |||||
* | Added determine route middlewareorigin/determine-route-middleware | Arnold Daniels | 2016-11-29 | 1 | -0/+72 |
| | | | | This middleware can determine the route at forehand, so it can be used by other middleware | ||||
* | Support taking stdClass instead of an array as route listorigin/glob-stdclass-routes | Arnold Daniels | 2016-11-29 | 1 | -0/+22 |
| | |||||
* | Merge branch 'master' into controller-runner-notfoundorigin/controller-runner-notfound | Arnold Daniels | 2016-11-29 | 1 | -1/+1 |
|\ | |||||
| * | Specify a path when adding middleware | Arnold Daniels | 2016-11-29 | 1 | -1/+1 |
| | | |||||
* | | Let the controller runner return a not found response | Arnold Daniels | 2016-11-29 | 1 | -24/+39 |
|/ | | | | 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 |
| | |||||
* | Prepend 'Controller' to controller class | Arnold Daniels | 2016-11-22 | 1 | -7/+9 |
| | |||||
* | Fix issue with Routes\Glob not working with full urlv1.0.1 | Arnold Daniels | 2016-11-22 | 1 | -2/+7 |
| | |||||
* | Move route binding (used in Glob) to a traitorigin/fix-tests | Arnold Daniels | 2016-11-03 | 3 | -212/+309 |
| | | | | | Added tests for Route Added missing @covers | ||||
* | Improved tests for Routes/Glob | Arnold Daniels | 2016-11-03 | 1 | -127/+224 |
| | |||||
* | Error handler has moved to it's own library | Arnold Daniels | 2016-10-30 | 1 | -86/+0 |
| | |||||
* | Use mocks for NotFound middleware | Arnold Daniels | 2016-10-25 | 1 | -201/+162 |
| | |||||
* | Minor fixes for Middleware\BasePath tests | Arnold Daniels | 2016-10-21 | 1 | -71/+71 |
| | |||||
* | Use vfsStream for Runner\PhpScript tests | Arnold Daniels | 2016-10-21 | 2 | -56/+93 |
| | |||||
* | Put RunnerFactory one dir up | Arnold Daniels | 2016-10-20 | 5 | -44/+67 |
| | | | | | Fix RunnerFactory tests Started with putting the tests in namespaces | ||||
* | Use mock for Runner\Controller | Arnold Daniels | 2016-10-20 | 1 | -120/+57 |
| | | | | `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 | 1 | -47/+20 |
| | | | | Fix bug in Runner\Callback | ||||
* | Use mocks for RunnerTest | Arnold Daniels | 2016-10-20 | 1 | -30/+23 |
| | | | | Put createCallbackMock in a trait | ||||
* | Merge remote-tracking branch 'origin/router-cleanup' | Arnold Daniels | 2016-10-20 | 5 | -0/+773 |
|\ | |||||
| * | Merge pull request #10 from Minstel/middleware-errorsorigin/router-cleanup | Arnold Daniels | 2016-10-20 | 3 | -1/+239 |
| |\ | | | | | | | Middleware errors | ||||
| | * | 'Error Handler' middleware | minstel | 2016-10-17 | 1 | -0/+86 |
| | | | |||||
| | * | 'Error page' middleware. Switched names for router 'run' and 'handle' methods | minstel | 2016-10-17 | 2 | -1/+153 |
| | | | |||||
| * | | Merge pull request #9 from Minstel/middleware-base-path | Arnold Daniels | 2016-10-19 | 1 | -0/+235 |
| |\ \ | | | | | | | | | 'Base Path' middleware | ||||
| | * | | Fixes | minstel | 2016-10-19 | 1 | -71/+24 |
| | | | | |||||
| | * | | 'Base Path' middleware | minstel | 2016-10-17 | 1 | -0/+282 |
| | |/ | |||||
| * | | Major fixes to 'NotFound' and it's tests | minstel | 2016-10-14 | 1 | -39/+107 |
| | | | |||||
| * | | Fixes to prev commit | minstel | 2016-10-13 | 1 | -17/+24 |
| | | | |||||
| * | | 'Not found' middleware | minstel | 2016-10-13 | 2 | -0/+225 |
| |/ | |||||
* | | 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 | 5 | -2/+380 |
| |\ \ | | |/ | |||||
| * | | Use phpunit 5's createMock rather than getMock | Arnold Daniels | 2016-10-13 | 1 | -8/+19 |
| | | | | | | | | | | | | Minor fixes in tests and code | ||||
* | | | Minor fix | minstel | 2016-10-17 | 1 | -1/+1 |
| | | | |||||
* | | | Implemented RunnerFactory | minstel | 2016-10-17 | 2 | -30/+41 |
| | | | |||||
* | | | Use phpunit 5's createMock rather than getMock | Arnold Daniels | 2016-10-17 | 1 | -5/+17 |
| | | | | | | | | | | | | Minor fixes in tests and code | ||||
* | | | Add the route as ServerRequest attribute | minstel | 2016-10-17 | 4 | -11/+4 |
| |/ |/| | |||||
* | | Implementation and tests for Router. Minor fixes | minstel | 2016-10-11 | 4 | -10/+10 |
| | | |||||
* | | Implementation as tests for Runner/Controller | minstel | 2016-10-11 | 1 | -0/+140 |
| | | |||||
* | | Implementation and test for Runner/PhpScript | minstel | 2016-10-10 | 2 | -3/+94 |
| | | |||||
* | | Implementation and tests for Runner/Callback. Minor fixes | minstel | 2016-10-08 | 2 | -9/+79 |
| | | |||||
* | | Added test for Runner class. Minor fixes | minstel | 2016-10-08 | 2 | -4/+79 |
|/ | |||||
* | Require jasny/php-code-quality | Arnold Daniels | 2016-10-07 | 1 | -5/+5 |
| | |||||
* | Created tests for Router/Routes/Glob | minstel | 2016-10-06 | 1 | -0/+428 |