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

Commit aa5d2ef

Browse files
committed
Deprecated all final handlers
Final handlers will be removed in version 2.0, to be replaced with default delegates.
1 parent 714b61a commit aa5d2ef

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

src/Container/TemplatedErrorHandlerFactory.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
* </code>
3939
*
4040
* If any of the keys are missing, default values will be used.
41+
*
42+
* @deprecated since 1.1.0, to be removed in 2.0.0. The "final handler" concept
43+
* will be replaced with a "default delegate", which will be an
44+
* implementation of Interop\Http\ServerMiddleware\DelegateInterface that
45+
* returns a canned response. Expressive will provide tools to migrate your
46+
* code to use default delegates for 2.0; you will only need to manually
47+
* change your code if you are extending this class.
4148
*/
4249
class TemplatedErrorHandlerFactory
4350
{

src/Container/WhoopsErrorHandlerFactory.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@
6060
* </code>
6161
*
6262
* All values are booleans; omission of any implies boolean false.
63+
*
64+
* @deprecated since 1.1.0, to be removed in 2.0.0. The "final handler" concept
65+
* will be replaced with a "default delegate", which will be an
66+
* implementation of Interop\Http\ServerMiddleware\DelegateInterface that
67+
* returns a canned response. Expressive will provide tools to migrate your
68+
* code to use default delegates for 2.0; you will only need to manually
69+
* change your code if you are extending this class.
6370
*/
6471
class WhoopsErrorHandlerFactory
6572
{

src/TemplatedErrorHandler.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
* Provides the optional ability to render a template for each of 404 and
1919
* general error conditions. If no template renderer is provided, returns
2020
* empty responses with appropriate status codes.
21+
*
22+
* @deprecated since 1.1.0, to be removed in 2.0.0. The "final handler" concept
23+
* will be replaced with a "default delegate", which will be an
24+
* implementation of Interop\Http\ServerMiddleware\DelegateInterface that
25+
* returns a canned response. Expressive will provide tools to migrate your
26+
* code to use default delegates for 2.0; you will only need to manually
27+
* change your code if you are extending this class.
2128
*/
2229
class TemplatedErrorHandler
2330
{

src/WhoopsErrorHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
* interface for navigating an exception stack trace.
2121
*
2222
* @see http://filp.github.io/whoops/
23+
* @deprecated since 1.1.0, to be removed in 2.0.0. The "final handler" concept
24+
* will be replaced with a "default delegate", which will be an
25+
* implementation of Interop\Http\ServerMiddleware\DelegateInterface that
26+
* returns a canned response. Expressive will provide tools to migrate your
27+
* code to use default delegates for 2.0; you will only need to manually
28+
* change your code if you are extending this class.
2329
*/
2430
class WhoopsErrorHandler extends TemplatedErrorHandler
2531
{

0 commit comments

Comments
 (0)