1 | <?php |
||
24 | class ContextDataCollector extends DataCollector |
||
25 | { |
||
26 | /** |
||
27 | * @var Context |
||
28 | */ |
||
29 | protected $context; |
||
30 | |||
31 | /** |
||
32 | * ContextDataCollector constructor. |
||
33 | * |
||
34 | * @param Context $context |
||
35 | */ |
||
36 | public function __construct(Context $context) |
||
40 | |||
41 | /** |
||
42 | * @param Request $request |
||
43 | * @param Response $response |
||
44 | * @param \Exception|null $exception |
||
45 | */ |
||
46 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getData() |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getName() |
||
71 | |||
72 | /** |
||
73 | * We don't have anything to reset here. |
||
74 | */ |
||
75 | public function reset() |
||
79 | |||
80 | private function getRouteData(?RouteInterface $route) |
||
99 | } |
||
100 |