zendframework / zend-stratigility

Middleware for PHP built on top of PSR-7 and PSR-15
BSD 3-Clause "New" or "Revised" License
235 stars 57 forks source link

Compatibility with zend-httphandlerrunner and zend-diactoros #180

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm trying to understand the larger picture with the new layouts for the aforementioned packages and this one, and I can't get my head fully around it.

I may be missing something, but there seems to be a component missing to allow the MiddlewarePipe to be useable as the ServerRequestHandlerInterface requirement of RequestHandlerRunner?

In the older versions, we had the ability to simply pass a pipeline to stratigility and it run, but since these packages have rightly been abstracted, I can't figure out after reading them, how we are to run a pipeline without writing an intermediary handler.

I imagine that expressive has such a thing, but for the consumers who don't use expressive, would it be possible to have something created in the stratigility package?

designermonkey commented 6 years ago

I wish I would remember to log in as the real me when I log issues. This isn't work related, and should have been this account. Whoops.

Xerkus commented 6 years ago

I don't quite understand your question. Stratigility middleware pipe is a request handler: https://github.com/zendframework/zend-stratigility/blob/9ea8435eac09be8ec2f6eafa72f5d41f11e2e823/src/MiddlewarePipeInterface.php#L15

designermonkey commented 6 years ago

This is why one shouldn't code at 11pm.