Re: RFC: Server-Side Request and Response Objects (v2)

From: Date: Wed, 12 Feb 2020 19:44:28 +0000
Subject: Re: RFC: Server-Side Request and Response Objects (v2)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-108516@lists.php.net to get a copy of this message
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

« previous php.internals (#108516) next »