Re: RFC: Server-Side Request and Response Objects (v2)
| From: | Paul M. Jones | Date: | Wed, 19 Feb 2020 14:06:59 +0000 |
| Subject: | Re: RFC: Server-Side Request and Response Objects (v2) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108664@lists.php.net to get a copy of this message | ||
Hi all,
Per the past several days of discussion, John Boehr and I have modified the proposal:
- ServerRequest
- The
$env property mapping to $_ENV has been removed
- The $requestedWith property mapping to
$_SERVER['HTTP_X_REQUESTED_WITH'] has been removed
- The superglobal $_GET now maps to the property $query (instead of
$get)
- The superglobal $_POST now maps to the property $input (instead of
$post)
- A new interface, ServerResponseInterface, is now available; ServerResponse implements it
There are still outstanding comments and questions yet to be resolved.
Thanks to everyone who has participated thus far!
--
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