Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class RequestDumper extends ExceptionCatcher |
||
17 | { |
||
18 | /** |
||
19 | * @var Response |
||
20 | */ |
||
21 | protected $response; |
||
22 | |||
23 | |||
24 | public function __construct(Application $application, Request $request, Response $response) |
||
25 | { |
||
26 | $context = []; |
||
27 | $context['request'] = $request; |
||
28 | $context['response'] = $response; |
||
29 | parent::__construct($application, $context); |
||
30 | $this->response = $response; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param Throwable $throwable |
||
35 | */ |
||
36 | public function dumpThrowable($throwable) |
||
42 | } |
||
43 | } |
||
45 |