Hi, I have the same idea as Oscar but I call the dispatcher as MiddlewareStack. Can someone explain how this violates SRP? As far as I can understand it, the stack/dispatcher is responsible for handling/delegating the request to the next middleware. The middleware is responsible of processing the request and returning a response. By passing the stack/dispatcher in the middleware, you may choose to create the response or let the stack/dispatcher handle/delegate the request to the next middleware (which I think is the same responsibility, or I am interpreting SRP wrong?).
-- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/ffa36dfb-7c96-4f90-b23d-bd03ab2f9d37%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
