Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function onPostExecute(Context $context) |
||
40 | { |
||
41 | if (null === ($exception = $context->getException())) { |
||
42 | return; |
||
43 | } |
||
44 | |||
45 | $renderTemplate = new RenderTemplate($this->templateName); |
||
46 | |||
47 | $context->getGateway()->execute($renderTemplate); |
||
48 | |||
49 | throw new HttpResponse(new Response($renderTemplate->getResult(), 200)); |
||
50 | } |
||
51 | } |
||
52 |