1 | <?php |
||
17 | class ExceptionResponder implements ResponderInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var FormatterInterface |
||
21 | */ |
||
22 | protected $formatter; |
||
23 | |||
24 | /** |
||
25 | * @param FormatterInterface $formatter |
||
26 | */ |
||
27 | public function __construct(FormatterInterface $formatter) |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | * |
||
35 | * Throws an exception containing the formatted message. |
||
36 | * |
||
37 | * @param Match $match |
||
38 | * @param TemplateInterface $template |
||
39 | * @param string $message |
||
40 | * @return void |
||
41 | * @throws Exception |
||
42 | */ |
||
43 | public function respond(Match $match, TemplateInterface $template, $message = '') |
||
53 | } |
||
54 |