1 | <?php |
||
22 | final class CachedTemplateLocator implements TemplateLocatorInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var TemplateLocatorInterface |
||
26 | */ |
||
27 | private $decoratedTemplateLocator; |
||
28 | |||
29 | /** |
||
30 | * @var Cache |
||
31 | */ |
||
32 | private $cache; |
||
33 | |||
34 | /** |
||
35 | * @param TemplateLocatorInterface $decoratedTemplateLocator |
||
36 | * @param Cache $cache |
||
37 | */ |
||
38 | public function __construct(TemplateLocatorInterface $decoratedTemplateLocator, Cache $cache) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function locateTemplate(TemplateReferenceInterface $template, ThemeInterface $theme) |
||
62 | |||
63 | /** |
||
64 | * @param TemplateReferenceInterface $template |
||
65 | * @param ThemeInterface $theme |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | private function getCacheKey(TemplateReferenceInterface $template, ThemeInterface $theme) |
||
73 | } |
||
74 |