zendframework / zend-problem-details

Provides Problem Details for HTTP APIs (RFC 7807) support for PSR-7 applications.
BSD 3-Clause "New" or "Revised" License
50 stars 18 forks source link

prevents ErrorHadler listeners to be executed #28

Closed svycka closed 6 years ago

svycka commented 6 years ago

I am tried to add logging to expressive application as described in documentation

Code to reproduce the issue

code from docs https://docs.zendframework.com/zend-expressive/features/error-handling/#listening-for-errors and this module added to route then just throw any exception at middleare with Accept: application/json header

Expected results

listeners to be called

Actual results

no listeners were called

svycka commented 6 years ago

Maybe as a solution would be possible to add listener support like in Zend\Stratigility\Middleware\ErrorHandler?