Closed schnittstabil closed 7 years ago
Current version:
5.2 Delegate Design Why does the delegate conflict with middleware? Both the middleware and delegate interface define a process method to prevent misuse of middleware as delegates.
Both the middleware and delegate interface define a process method to prevent misuse of middleware as delegates.
process
Sadly Luckily, we cannot prevent that misuse (whatever misuse means, see #56) just by naming both methods process:
class MD implements DelegateInterface, MiddlewareInterface { function process(ServerRequestInterface $request, DelegateInterface $delegate = null) { //… } }
See https://3v4l.org/HmpFF for details.
Closing because of #66
Current version:
SadlyLuckily, we cannot prevent that misuse (whatever misuse means, see #56) just by naming both methodsprocess
:See https://3v4l.org/HmpFF for details.