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