This repository was archived by the owner on Jan 29, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork192
Commit6bad82f
committed
Do not cast request handlers implementing middleware to
Per#645, `MiddlewareContainer::get()` was incorrectly castingmiddleware that also implemented `RequestHandlerInterface` to`RequestHandlerMiddleware`. This particularly affected`Zend\Stratigility\MiddlewarePipe` instances, as they implement bothinterfaces; if the last middleware in a pipeline called on the handler,users would then encounter a "pipeline exhausted" error, because itwould be invoked as a handler, and thus have no reference to theapplication's pipeline.This change verifies that the request handler does not also implement`MiddlewareInterface` before casting.RequestHandlerMiddleware1 parent4e551cd commit6bad82f
2 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
104 | 120 | | |
0 commit comments
Comments
(0)