1 | <?php |
||
17 | final class DompdfWrapper implements DompdfWrapperInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var DompdfFactoryInterface |
||
21 | */ |
||
22 | private $dompdfFactory; |
||
23 | |||
24 | /** |
||
25 | * @param DompdfFactoryInterface $dompdfFactory |
||
26 | */ |
||
27 | public function __construct(DompdfFactoryInterface $dompdfFactory) |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function streamHtml(string $html, string $filename, array $options = []): void |
||
42 | |||
43 | /** |
||
44 | * @param string $html |
||
45 | * @param string $filename |
||
46 | * @param array $options |
||
47 | * |
||
48 | * @return StreamedResponse |
||
49 | */ |
||
50 | public function getStreamResponse(string $html, string $filename, array $options = []): StreamedResponse |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getPdf(string $html, array $options = []): string |
||
71 | } |
||
72 |