zendframework / zend-expressive-router

Router subcomponent for Expressive
BSD 3-Clause "New" or "Revised" License
28 stars 13 forks source link

Pass ResponseInterface factory service to middlewares #51

Closed michalbundyra closed 6 years ago

michalbundyra commented 6 years ago

Refactors the various middleware that previously received ResponseInterface instances as response prototypes to instead receive a callable factory capable of producing an instance. This allows easier re-use of services, and ensures a discrete instances is always provided.

A side effect is that the various constants are no longer required.

weierophinney commented 6 years ago

Thanks, @webimpress