PSR-15 compatible middleware for Whoops, the pretty error handler
Full changelog:
Content-Type
header for all supported response formats (#11)This adds support for using the library together with Diactoros v2.0.
A future release will add support for PSR-17 factories.
As the interfaces changed slightly before the final version of PSR-15 was published, this release brings support for the latest version (see #9).
All other middleware adapters were removed. Please user PSR-15, it's the standard!
Please check out the README for the current interface.
Thanks to @timtegeler, we now support PSR-15 compatible (as of yet, it's still in review) middleware.
Oh, and I also added an official license, this is now licensed under MIT. If this is possible, I hereby want to clarify that I consider all previous versions licensed under MIT as well, so you are not in trouble for using them.
Full changelog:
The first release only had an error middleware for use with Zend Stratigility. This new release also supports other middleware stacks, such as Relay.
Full changelog:
Full changelog:
ErrorMiddleware
didn't completely fulfill Stratigility's requirements: all four parameters needed to be required. (#3).We now support Whoops v2.0.0+.
The biggest BC break in the new Whoops version is the increased minimum PHP version.
The first release only had an error middleware for use with Zend Stratigility. This new release also supports other middleware stacks, such as Relay.
Full changelog:
Middleware
class now implements the classical three-arguments signature as known from Relay and others.Middleware
to ErrorMiddleware
.