Skip to content

ServerRequestFactory: fromGlobal Example

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

Shieldon\Psr17\ServerRequestFactory

::fromGlobal()

Create a new server request from superglobals.

(Non-PSR)

  • return ServerRequestInterface

Examples:

$serverRequest = ServerRequestFactory::fromGlobal();
Clone this wiki locally