Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class ShootMiddleware implements MiddlewareInterface |
||
17 | { |
||
18 | /** @var Pipeline */ |
||
19 | private $pipeline; |
||
20 | |||
21 | /** |
||
22 | * Constructs a new instance of ShootMiddleware. The same instance of the Pipeline as passed into the Twig extension |
||
23 | * must be used here. |
||
24 | * |
||
25 | * @param Pipeline $pipeline |
||
26 | */ |
||
27 | 1 | public function __construct(Pipeline $pipeline) |
|
28 | { |
||
29 | 1 | $this->pipeline = $pipeline; |
|
30 | 1 | } |
|
31 | |||
32 | /** |
||
33 | * Process an incoming server request and return a response, optionally delegating |
||
34 | * response creation to a handler. |
||
35 | * |
||
36 | * @param ServerRequestInterface $request |
||
37 | * @param RequestHandlerInterface $handler |
||
38 | * |
||
39 | * @return ResponseInterface |
||
40 | */ |
||
41 | 1 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
45 | 1 | }); |
|
46 | } |
||
48 |