Closed schnittstabil closed 7 years ago
Would this wording be more correct?
The delegate interface must be implemented by any middleware dispatching library or package that uses middleware implementing
ServerMiddlewareInterface
.
This describes that DelegateInterface
must be provided to dispatched middleware without implying that a pipe implementation like Equip\Dispatch
need implement it directly.
@atanvarno69 Well, I believe such a list will never be comprehensive.
Maybe we should just remove the sentence without replacement. Because of the MiddlewareInterface::process
signature and the 5.1 Middleware Design paragraph it is already clear that:
DelegateInterface
instance somehow,You are free to make your case during the PSR-15 review period. I am calling for the PSR-15 acceptance vote before Jan 17.
Form the current
README.md
The bold marked part is technically wrong,
Equip\Dispatch\MiddlewarePipe
is a counter example. Obviously, it is a middleware dispatcher which should not implement theDelegateInterface
; instead it creates aDelegateInterface
instance: