| 1 | <?php |
||
| 9 | abstract class AbstractResponder |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var RouterInterface |
||
| 13 | */ |
||
| 14 | protected $router; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Twig_Environment |
||
| 18 | */ |
||
| 19 | protected $twig; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * AbstractResponder constructor. |
||
| 23 | * |
||
| 24 | * @param RouterInterface $router |
||
| 25 | * @param Twig_Environment $twig |
||
| 26 | */ |
||
| 27 | 9 | public function __construct(RouterInterface $router, Twig_Environment $twig) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Create a Response with a Twig rendered content. |
||
| 35 | * |
||
| 36 | * @param string $template |
||
| 37 | * @param array $context |
||
| 38 | * |
||
| 39 | * @return Response |
||
| 40 | */ |
||
| 41 | 4 | protected function render($template, array $context = []) |
|
| 50 | } |
||
| 51 |