-
Notifications
You must be signed in to change notification settings - Fork 1
RequestHandler: __construct Example
Terry L edited this page Jun 21, 2020
·
2 revisions
Shieldon\Psr15\RequestHandler
-
param
RequestHandlerInterfacefallbackHandler*The request handler.
Example:
$finalHandler = new FinalHandler();
$app = new RequestHandler($finalHandler);
$app->add(new ApiMiddleware());
$app->add(new StringMiddleware());
$response = $app->handle(ServerRequestFactory::fromGlobal());composer require shieldon/psr-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
