Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ResponsePrinterFactory | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
createResponsePrinter | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Http; |
6 | |
7 | use PeServer\Core\DI\DiFactoryBase; |
8 | use PeServer\Core\DI\DiFactoryTrait; |
9 | use PeServer\Core\DI\IDiContainer; |
10 | |
11 | class ResponsePrinterFactory extends DiFactoryBase implements IResponsePrinterFactory |
12 | { |
13 | use DiFactoryTrait; |
14 | |
15 | #region IResponsePrinterFactory |
16 | |
17 | public function createResponsePrinter(HttpRequest $request, HttpResponse $response): ResponsePrinter |
18 | { |
19 | return $this->container->new(ResponsePrinter::class, [$request, $response]); |
20 | } |
21 | |
22 | #endregion |
23 | } |