Skip to content

ServerRequestFactory: fromGlobal Example

Terry L edited this page Jun 21, 2020 · 4 revisions
Clone this wiki locally

Shieldon\Psr17\ServerRequestFactory

::fromGlobal()

Create a new server request from superglobals.

(Non-PSR)

  • return ServerRequestInterface

Examples:

$serverRequest = ServerRequestFactory::fromGlobal();