-
Notifications
You must be signed in to change notification settings - Fork 57
Forward port error handling to 2.0.0 #79
Forward port error handling to 2.0.0 #79
Commits on Nov 7, 2016
-
Added support for
raiseThrowables
flag in DispatchWhen enabled, any middleware dispatch is no longer wrapped in try/catch blocks, allowing for exceptions/throwables to bubble out.
Configuration menu - View commit details
-
Copy full SHA for 0d8d50a - Browse repository at this point
Copy the full SHA 0d8d50aView commit details -
Added "raise throwables" flag to Next implementation
Added `$raiseThrowables` property and `raiseThrowables()` method, with the former defaulting to `false` for backwards compatibility. Has the following behavior: - Enables the same flag in the `Dispatch` instance composed. - If enabled and `$err` is passed to `__invoke()`: - Throwable/Exception values are simply thrown. - String arguments are used as the message for a new `MiddlewareException`. - Scalar values are reported in a new `MiddlewareException` - Array value *types* are reported in a new `MiddlewareException` - Object *types* are reported in a new `MiddlewareException` - Non-throwable/exception types trigger the deprecation notice
Configuration menu - View commit details
-
Copy full SHA for dd82b23 - Browse repository at this point
Copy the full SHA dd82b23View commit details -
Added "raise throwables" flag to MiddlewarePipe
- Disabled by default - `raiseThrowables()` enables it - When enabled, calls same method on `Next` instance after creating it
Configuration menu - View commit details
-
Copy full SHA for 2ed65c0 - Browse repository at this point
Copy the full SHA 2ed65c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c258193 - Browse repository at this point
Copy the full SHA c258193View commit details -
Merge branch 'feature/error-handling-poka-yoke' into feature/error-ha…
…ndling-v2 Forward-ports zendframework#78 to dev-2.0.0. Conflicts: src/Dispatch.php src/MiddlewarePipe.php src/Next.php test/DispatchTest.php test/NextTest.php
Configuration menu - View commit details
-
Copy full SHA for 3f2b02e - Browse repository at this point
Copy the full SHA 3f2b02eView commit details
Commits on Nov 8, 2016
-
Updated __invoke docblock to cover $delegate argument
Removed section on $out, and replaced with detail on $delegate.
Configuration menu - View commit details
-
Copy full SHA for f4539eb - Browse repository at this point
Copy the full SHA f4539ebView commit details -
Added tests requested by @xtreamwayz
Ensure all paths in Dispatch are covered.
Configuration menu - View commit details
-
Copy full SHA for d8f38eb - Browse repository at this point
Copy the full SHA d8f38ebView commit details -
Merge branch 'feature/error-handling-poka-yoke' into feature/error-ha…
…ndling-v2 Forward port changes made for zendframework#78 (in this case, tests that are no longer applicable). Conflicts: test/DispatchTest.php
Configuration menu - View commit details
-
Copy full SHA for be21c25 - Browse repository at this point
Copy the full SHA be21c25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01b9fb3 - Browse repository at this point
Copy the full SHA 01b9fb3View commit details -
Merge branch 'feature/error-handling-poka-yoke' into feature/error-ha…
…ndling-v2 Forward port changes from zendframework#78. Conflicts: src/Dispatch.php
Configuration menu - View commit details
-
Copy full SHA for 69989e3 - Browse repository at this point
Copy the full SHA 69989e3View commit details