Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

This is only part of a thread. view whole thread
  108516
February 12, 2020 19:44 pmjones@pmjones.io (Paul M . Jones)
Hi Jan,


> I like this proposal a lot, since it provides a clear, concise interface to these commonly uses, yet inconveniant to use, existing functions and variables without having to always use a full-featured userland library.
Glad to hear the RFC is hitting the right notes!
> Speaking of interfaces: since you suggest using decoration and composition over extension for ServerResponse, I am missing a ServerResponseInterface, so that you can easily typehint such userland decorators.
I am not opposed to a ServerResponseInterface, if John Boehr is not -- though at the same time, I am wary of expanding the number of new declarations too much. -- Paul M. Jones pmjones@pmjones.io http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php