Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit dde9a68

Browse files
committed
Deprecated ErrorMiddlewarePipe.
1 parent 802c4f9 commit dde9a68

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ErrorMiddlewarePipe.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
* It is not implemented as an extension of MiddlewarePipe, as that class
2929
* implements the MiddlewareInterface, which prevents its use as error
3030
* middleware.
31+
*
32+
* @deprecated since 1.1.0; to remove in 2.0.0. Stratigility 1.3 deprecates the
33+
* concept of "error middleware" (middleware accepting exactly four arguments
34+
* the first of which being an error) in favor of using standard middleware
35+
* for error handling; you can use `Zend\Stratigility\ErrorHandler` either
36+
* directly or as an example of how to implement such middleware. If you are
37+
* using Stratigility 1.3, you can enable such error handling by calling
38+
* `raiseThrowables()` on your `Application` instance.
3139
*/
3240
class ErrorMiddlewarePipe
3341
{

0 commit comments

Comments
 (0)