All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
3.0.2 - 2024-12-05
- Support for PHP 8.4
3.0.1 - 2020-12-03
- Support for PHP 8.0
3.0.0 - 2019-11-29
- Support for webp responses under the
ImageFormatter
error handler - Additional XML content types #9
- Merged
JpegFormatter
,GifFormatter
andPngFormatter
in oneImageFormatter
. - By default, all formatters are used.
- Support for PHP 7.0 and 7.1
defaultFormatter
option. De first value of the array of formatters will be used as default
2.0.0 - 2019-05-10
- Use
phpstan
as a dev dependency to detect bugs
- Always catches exceptions
- Create separate classes for error formatters
- Allow any number of formatters to be used
- Allow any exception to define HTTP status code
- Ability to handle responses with http error codes (400-599). A new package will be created for that. This package only handles exceptions.
HttpErrorException
class (that was simply an extension ofMiddlewares\Utils\HttpErrorException
). You can useMiddlewares\Utils\HttpErrorException
directly.
1.2.0 - 2018-08-04
- PSR-17 support
- Added a first argument to the constructor of
ErrorHandlerDefault
to customize theResponseFactoryInterface
1.1.0 - 2018-06-25
- Use
HttpErrorException
from utils package
1.0.0 - 2018-01-26
- Improved testing and added code coverage reporting
- Added tests for PHP 7.2
- Upgraded to the final version of PSR-15
psr/http-server-middleware
- Updated license year
0.9.0 - 2017-12-16
- The request handler used to generate the response must implement
Interop\Http\Server\RequestHandlerInterface
. Removed support for callables.
- Removed
arguments()
option.
0.8.0 - 2017-11-13
- Replaced
http-interop/http-middleware
withhttp-interop/http-server-middleware
.
- Removed support for PHP 5.x.
0.7.0 - 2017-09-21
- Append
.dist
suffix to phpcs.xml and phpunit.xml files - Changed the configuration of phpcs and php_cs
- Upgraded phpunit to the latest version and improved its config file
- Updated to
http-interop/http-middleware#0.5
0.6.0 - 2017-03-26
- Added
Middlewares\HttpErrorException
class to allow to pass data context to the error handler - Changed the error handler signature. The attribute
error
contains an instance ofMiddlewares\HttpErrorException
instead an array. - Updated to
middlewares/utils#~0.11
0.5.0 - 2017-02-05
- Updated to
middlewares/utils#~0.9
0.4.0 - 2016-12-26
- Updated tests
- Updated to
http-interop/http-middleware#0.4
- Updated
friendsofphp/php-cs-fixer#2.0
0.3.0 - 2016-11-22
- Updated to
http-interop/http-middleware#0.3
0.2.0 - 2016-11-19
- New option
attribute()
to change the attribute name used to pass the error info to the handler.
- Changed the handler signature to
function(ServerRequestInterface $request)
. - The error info is passed to the handler using an array stored in the request attribute
error
.
0.1.0 - 2016-10-03
First version