| 1 | <?php |
||
| 13 | class ErrorPagerRenderer implements RenderInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Twig_Environment |
||
| 17 | */ |
||
| 18 | private $twig; |
||
| 19 | |||
| 20 | private $errorPage; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @TwigErrorPath("errorPage") |
||
| 24 | */ |
||
| 25 | public function __construct(\Twig_Environment $twig, string $errorPage) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @throws \Twig_Error_Loader |
||
| 33 | * @throws \Twig_Error_Runtime |
||
| 34 | * @throws \Twig_Error_Syntax |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function render(ResourceObject $ro) |
||
| 44 | } |
||
| 45 |