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.
Refactors the various middleware that previously received
ResponseInterface
instances as response prototypes to instead receive acallable
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.