summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixup sensio badgeHEADorigin/masterorigin/HEADmasterArnold Daniels2017-06-081-1/+1
|
* Added some text to the README (WIP)Arnold Daniels2017-06-081-0/+32
| | | | Added badges to README
* Implicit fn route for Glob router.Arnold Daniels2017-06-083-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.2Arnold Daniels2017-02-281-1/+1
|
* Revive request for error pagev1.1.1Arnold Daniels2017-01-301-7/+42
|
* Run travis tests for PHP 7.1v1.1.0Arnold Daniels2017-01-241-0/+1
|
* Removed absolete RunnerTestArnold Daniels2017-01-246-43/+7
| | | | Fixed @use in tests
* Set protocol version for Router::notFoundArnold Daniels2017-01-242-2/+6
|
* Update to Jasny PHP code quality 2.1Arnold Daniels2017-01-2413-73/+39
| | | | Use Jasny\TestHelper (rather than defining a similar in this lib)
* Renamed Routes to RoutesInterfaceArnold Daniels2017-01-2412-54/+50
|
* Added RouterInterfaceArnold Daniels2017-01-244-10/+59
|
* Added ability to use Dependency injectionArnold Daniels2016-12-2021-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.5Arnold Daniels2016-12-022-127/+110
|\ | | | | Fix ErrorPage middleware
| * Rewrite ErrorPage testsorigin/errorpageArnold Daniels2016-12-022-116/+72
| |
| * Fix ErrorPage middlewareArnold Daniels2016-11-301-13/+40
|/ | | | If should not change the request when running
* Merge pull request #19 from jasny/strict-controller-classv1.0.4Arnold Daniels2016-11-294-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-classArnold Daniels2016-11-292-1/+6
| | | | | | | | Allowing to use a backslash could also lead to security issues
| * Be strict on translating controller property to class nameArnold Daniels2016-11-294-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.3Arnold Daniels2016-11-292-8/+16
|\ | | | | Use an array as `controller` property to specify the namespace
| * Use an array as `controller` property to specify the namespaceorigin/controller-runner-namespaceArnold Daniels2016-11-292-8/+16
|/
* Merge pull request #17 from jasny/determine-route-middlewareArnold Daniels2016-11-292-0/+133
|\ | | | | Added determine route middleware
| * Added determine route middlewareorigin/determine-route-middlewareArnold Daniels2016-11-292-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-routesArnold Daniels2016-11-292-3/+27
|\ | | | | Support taking stdClass instead of an array as route list
| * Support taking stdClass instead of an array as route listorigin/glob-stdclass-routesArnold Daniels2016-11-292-3/+27
|/
* Merge pull request #15 from jasny/controller-runner-notfoundArnold Daniels2016-11-293-26/+81
|\ | | | | Let the controller runner return a not found response
| * Merge branch 'master' into controller-runner-notfoundorigin/controller-runner-notfoundArnold Daniels2016-11-293-14/+176
| |\ | |/ |/|
* | Merge pull request #14 from jasny/middleware-pathArnold Daniels2016-11-293-14/+176
|\ \ | | | | | | Specify a path when adding middleware
| * | Added tests for adding middleware with a pathorigin/middleware-pathArnold Daniels2016-11-292-2/+71
| | |
| * | Reversed the middleware orderArnold Daniels2016-11-292-8/+13
| | | | | | | | | | | | Fixed Router middleware tests
| * | Specify a path when adding middlewareArnold Daniels2016-11-293-11/+99
|/ /
| * Let the controller runner return a not found responseArnold Daniels2016-11-293-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.2Arnold Daniels2016-11-222-8/+13
|
* Fix issue with splitUrl in Glob::getRouteArnold Daniels2016-11-221-1/+1
|
* Prepend 'Controller' to controller classArnold Daniels2016-11-222-8/+10
|
* Fix issue with Routes\Glob not working with full urlv1.0.1Arnold Daniels2016-11-222-17/+29
|
* Merge pull request #13 from jasny/fix-testsv1.0.0Arnold Daniels2016-11-0330-1429/+1597
|\ | | | | Fix tests
| * Move route binding (used in Glob) to a traitorigin/fix-testsArnold Daniels2016-11-036-423/+636
| | | | | | | | | | Added tests for Route Added missing @covers
| * Improved tests for Routes/GlobArnold Daniels2016-11-034-140/+238
| |
| * Error handler has moved to it's own libraryArnold Daniels2016-10-304-142/+4
| |
| * Use mocks for NotFound middlewareArnold Daniels2016-10-252-221/+191
| |
| * Minor fixes for Middleware\BasePath testsArnold Daniels2016-10-212-83/+83
| |
| * Use vfsStream for Runner\PhpScript testsArnold Daniels2016-10-213-64/+112
| |
| * Put RunnerFactory one dir upArnold Daniels2016-10-208-47/+72
| | | | | | | | | | Fix RunnerFactory tests Started with putting the tests in namespaces
| * Use mock for Runner\ControllerArnold Daniels2016-10-202-131/+80
| | | | | | | | `Runner\Controller::instantiate()` doesn't have to be covered with tests
| * Test Runner\Callback RuntimeExceptionArnold Daniels2016-10-201-1/+35
| |
| * Use mocks for Runner\CallbackArnold Daniels2016-10-203-53/+26
| | | | | | | | Fix bug in Runner\Callback
| * Use mocks for RunnerTestArnold Daniels2016-10-205-50/+63
| | | | | | | | Put createCallbackMock in a trait
| * Rewritten Router tests, mocking all other objectsArnold Daniels2016-10-202-191/+169
| |
| * Use Runner\Controller::instantiateController() to create a controllerArnold Daniels2016-10-203-20/+29
| | | | | | | | Minor code cleanup
| * Router takes a Routes object, not an arrayArnold Daniels2016-10-201-34/+30
|/ | | | Minor code improvements in Router class
* Merge remote-tracking branch 'origin/router-cleanup'Arnold Daniels2016-10-2012-14/+1139
|\
| * Merge pull request #10 from Minstel/middleware-errorsorigin/router-cleanupArnold Daniels2016-10-207-12/+379
| |\ | | | | | | Middleware errors
| | * 'Error Handler' middlewareminstel2016-10-172-0/+140
| | |
| | * 'Error page' middleware. Switched names for router 'run' and 'handle' methodsminstel2016-10-175-12/+239
| | |
| * | Merge pull request #9 from Minstel/middleware-base-pathArnold Daniels2016-10-192-0/+353
| |\ \ | | | | | | | | 'Base Path' middleware
| | * | Fixesminstel2016-10-192-81/+31
| | | |
| | * | 'Base Path' middlewareminstel2016-10-172-0/+403
| | |/
| * | Merge pull request #7 from Minstel/router-cleanupArnold Daniels2016-10-184-3/+408
| |\ \ | | | | | | | | 'Not found' middleware
| | * | Major fixes to 'NotFound' and it's testsminstel2016-10-142-50/+126
| | | |
| | * | Fixes to prev commitminstel2016-10-132-42/+41
| | | |
| | * | 'Not found' middlewareminstel2016-10-134-3/+333
| | |/
* | | Merge pull request #12 from Minstel/Add_the_route_as_ServerRequest_attributeArnold Daniels2016-10-1812-107/+169
|\ \ \ | | | | | | | | Add the route as ServerRequest attribute
| * | | Minor cleanup Runner::getFactory()Arnold Daniels2016-10-181-1/+5
| | | |
| * | | Merge branch 'master' into Add_the_route_as_ServerRequest_attributeArnold Daniels2016-10-181-0/+1
| |\ \ \ | |/ / / |/| | |
* | | | Merge remote-tracking branch 'origin/router-cleanup' into glob-testsArnold Daniels2016-10-1713-615/+876
|\ \ \ \ | | |/ / | |/| |
| * | | Merge pull request #5 from Minstel/router-cleanupArnold Daniels2016-10-1211-54/+502
| |\ \ \ | | | |/ | | |/| Implementation and tests for Router. Minor fixes
* | | | Merge pull request #8 from jasny/glob-testsArnold Daniels2016-10-133-24/+22
|\ \ \ \ | | | | | | | | | | Minor fixes in tests and code
| * | | | use php code quality v2origin/glob-testsArnold Daniels2016-10-131-1/+1
| | | | |
| * | | | Needless useArnold Daniels2016-10-131-1/+0
| | | | |
| * | | | Use phpunit 5's createMock rather than getMockArnold Daniels2016-10-133-24/+23
|/ / / / | | | | | | | | | | | | Minor fixes in tests and code
* | | | Added travis config and added badges to READMEArnold Daniels2016-10-102-0/+22
| | | |
| | | * Minor fixminstel2016-10-171-1/+1
| | | |
| | | * Implemented RunnerFactoryminstel2016-10-176-56/+135
| | | |
| | | * use php code quality v2Arnold Daniels2016-10-171-3/+3
| | | |
| | | * Needless useArnold Daniels2016-10-171-1/+0
| | | |
| | | * Use phpunit 5's createMock rather than getMockArnold Daniels2016-10-172-18/+18
| | | | | | | | | | | | | | | | Minor fixes in tests and code
| | | * Added travis config and added badges to READMEArnold Daniels2016-10-172-0/+22
| | | |
| | | * Add the route as ServerRequest attributeminstel2016-10-1710-53/+32
| | |/
| | * Add and run middlewares in Routerminstel2016-10-122-13/+152
| | |
| | * Implementation and tests for Router. Minor fixesminstel2016-10-1111-54/+211
| | |
| | * Implementation as tests for Runner/Controllerminstel2016-10-112-1/+153
| |/
| * The Router::invoke method should not be finalArnold Daniels2016-10-101-2/+2
| |
| * Removed base class as well. It can come back as middleware.Arnold Daniels2016-10-101-36/+0
| |
| * Removed all functionality that's in PSR-7 or Routes / Runner.Arnold Daniels2016-10-101-469/+33
| | | | | | | | Added baseline for `handle` function
| * Moved Router.php to correct dirArnold Daniels2016-10-101-0/+0
| |
| * Merge pull request #2 from Minstel/runnerArnold Daniels2016-10-109-56/+319
| |\ | | | | | | Added test for Runner class. Minor fixes
| | * Implementation and test for Runner/PhpScriptminstel2016-10-103-11/+102
| | |
| | * Implementation and tests for Runner/Callback. Minor fixesminstel2016-10-083-10/+86
| | |
| | * Added test for Runner class. Minor fixesminstel2016-10-087-49/+145
| |/
| * Added abstract Runner::run() method and make __invoke() call it.Arnold Daniels2016-10-071-3/+23
|/
* Start of Runner class.Arnold Daniels2016-10-074-12/+62
| | | | The Route class no longer has an execute method, instead a Runner should be used.
* Please Route in Jasny\Router namespaceArnold Daniels2016-10-075-8/+8
|
* Require jasny/php-code-qualityArnold Daniels2016-10-072-7/+9
|
* Merge pull request #1 from Minstel/masterArnold Daniels2016-10-066-43/+487
|\ | | | | Created tests for Router/Routes/Glob
| * Created tests for Router/Routes/Globminstel2016-10-066-43/+487
|/
* Added Route class (WIP)Arnold Daniels2016-10-049-180/+608
| | | | | Added trait for url parsing Added Glob routes
* Basic readmeArnold Daniels2016-08-171-3/+13
|
* Split out Router as standalone libArnold Daniels2016-08-177-1484/+8
|
* Fix casting to associated array in Router::bind()Arnold Daniels2016-06-221-3/+6
|
* Fix routing to a methodArnold Daniels2016-06-201-2/+6
| | | | Make Router::routeTo public