1 | <?php |
||
19 | abstract class TemplatingExceptionController extends ExceptionController |
||
20 | { |
||
21 | protected $templating; |
||
22 | |||
23 | 4 | public function __construct( |
|
24 | ViewHandlerInterface $viewHandler, |
||
25 | array $exceptionCodes, |
||
26 | $showException, |
||
27 | EngineInterface $templating |
||
28 | ) { |
||
29 | 4 | parent::__construct($viewHandler, $exceptionCodes, $showException); |
|
30 | |||
31 | 4 | $this->templating = $templating; |
|
32 | 4 | } |
|
33 | |||
34 | /** |
||
35 | * Finds the template for the given format and status code. |
||
36 | * |
||
37 | * @param Request $request |
||
38 | * @param int $statusCode |
||
39 | * @param bool $showException |
||
40 | * |
||
41 | * @return TemplateReferenceInterface |
||
42 | */ |
||
43 | abstract protected function findTemplate(Request $request, $statusCode, $showException); |
||
44 | } |
||
45 |