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