1 | <?php |
||
23 | final class TemplateParser implements TemplateParserInterface |
||
24 | { |
||
25 | const FBIA_TEMPLATE_NAME = 'facebook_instant_article.html.twig'; |
||
26 | |||
27 | /** |
||
28 | * @var EngineInterface |
||
29 | */ |
||
30 | protected $templating; |
||
31 | |||
32 | /** |
||
33 | * @var Transformer |
||
34 | */ |
||
35 | protected $transformer; |
||
36 | |||
37 | /** |
||
38 | * TemplateParser constructor. |
||
39 | * |
||
40 | * @param EngineInterface $templating |
||
41 | */ |
||
42 | 11 | public function __construct(EngineInterface $templating) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function parse(string $html = null): InstantArticle |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 1 | public function renderTemplate(): string |
|
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | 1 | public function getTransformer(): Transformer |
|
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | 1 | public function getTemplating() |
|
102 | } |
||
103 |