http-interop / http-middleware

PSR-15 interfaces for HTTP Middleware
MIT License
73 stars 7 forks source link

Delegates which are not defined within middleware dispatching systems!? #62

Closed schnittstabil closed 7 years ago

schnittstabil commented 7 years ago

Why does the delegate conflict with middleware?

… The implementation of delegate should be defined within middleware dispatching systems.

I've reread this sentence multiple times from different points of view and I'm asking myself:

Is it anyhow possible that a delegate is not defined within middleware dispatching system?

I mean, if $d instanceof DelegateInterface, then $d can be used to dispatch middlewares, thus $d is part of the middleware dispatching system, isn't it?

Note: I must admit, the word within above does not make much sense to me in a packagist.org world.

shadowhand commented 7 years ago

No longer a concern with #71.