1 | <?php |
||
13 | class HealthCheckController |
||
14 | { |
||
15 | protected $container; |
||
16 | protected $runner; |
||
17 | protected $pathHelper; |
||
18 | protected $template; |
||
19 | |||
20 | /** |
||
21 | * @param ContainerInterface $container |
||
22 | * @param PathHelper $pathHelper |
||
23 | * @param $template |
||
24 | */ |
||
25 | public function __construct(ContainerInterface $container, PathHelper $pathHelper, $template) |
||
31 | |||
32 | /** |
||
33 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
34 | * |
||
35 | * @return \Symfony\Component\HttpFoundation\Response |
||
36 | */ |
||
37 | public function indexAction(Request $request) |
||
65 | |||
66 | /** |
||
67 | * @return \Symfony\Component\HttpFoundation\Response |
||
68 | */ |
||
69 | public function listAction(Request $request) |
||
81 | |||
82 | /** |
||
83 | * @return JsonResponse |
||
84 | */ |
||
85 | public function listAllAction() |
||
101 | |||
102 | /** |
||
103 | * @return JsonResponse |
||
104 | */ |
||
105 | public function listGroupsAction() |
||
117 | |||
118 | /** |
||
119 | * @param Request $request |
||
120 | * |
||
121 | * @return \Symfony\Component\HttpFoundation\Response |
||
122 | */ |
||
123 | public function runAllChecksAction(Request $request) |
||
132 | |||
133 | /** |
||
134 | * @param Request $request |
||
135 | * |
||
136 | * @return \Symfony\Component\HttpFoundation\Response |
||
137 | */ |
||
138 | public function runAllChecksHttpStatusAction(Request $request) |
||
147 | |||
148 | /** |
||
149 | * @param string $checkId |
||
150 | * @param Request $request |
||
151 | * |
||
152 | * @return \Symfony\Component\HttpFoundation\Response |
||
153 | */ |
||
154 | public function runSingleCheckHttpStatusAction($checkId, Request $request) |
||
163 | |||
164 | /** |
||
165 | * @param string $checkId |
||
166 | * @param Request $request |
||
167 | * |
||
168 | * @return \Symfony\Component\HttpFoundation\Response |
||
169 | */ |
||
170 | public function runSingleCheckAction($checkId, Request $request) |
||
176 | |||
177 | /** |
||
178 | * @param Request $request |
||
179 | * @param string|null $checkId |
||
180 | * |
||
181 | * @return ArrayReporter |
||
182 | */ |
||
183 | protected function runTests(Request $request, $checkId = null) |
||
201 | |||
202 | /** |
||
203 | * @param Request $request |
||
204 | * |
||
205 | * @return Runner |
||
206 | * |
||
207 | * @throws \Exception |
||
208 | */ |
||
209 | private function getRunner(Request $request) |
||
221 | |||
222 | /** |
||
223 | * @param Request $request |
||
224 | * |
||
225 | * @return string |
||
226 | */ |
||
227 | private function getGroup(Request $request) |
||
237 | } |
||
238 |