| 1 | <?php |
||
| 12 | final class CanRenderValidator extends AbstractValidator |
||
| 13 | { |
||
| 14 | const RENDERING_FAILED = 'roave:email-templates:cannot-render-template'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | private $messageTemplates = [ |
||
| 20 | self::RENDERING_FAILED => 'Rendering failed: with %value%s', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var EngineInterface |
||
| 25 | */ |
||
| 26 | private $engine; |
||
| 27 | |||
| 28 | public function __construct(EngineInterface $engine) |
||
| 34 | |||
| 35 | public function isValid($value, $context = null) |
||
| 47 | } |
||
| 48 |