Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 466 Bytes

SlimLazyRequestHandler.md

File metadata and controls

23 lines (15 loc) · 466 Bytes

SlimLazyRequestHandler

Methods

handle

<?php

use Chubbyphp\Framework\RequestHandler\SlimLazyRequestHandler;
use Some\Psr11\Container;
use Some\Psr7\ResponseFactory;
use Some\Psr7\ServerRequest;

$request = new ServerRequest();

$container = new Container();
$responseFactory = new ResponseFactory();

$lazyMiddleware = new SlimLazyRequestHandler($container, 'requestHandler', $responseFactory);

$response = $lazyMiddleware->handle($request);