1 | <?php |
||
13 | final class CacheBaracoa implements BaracoaInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $bundleSrcBasePath; |
||
19 | |||
20 | /** |
||
21 | * @var CacheInterface |
||
22 | */ |
||
23 | private $cache; |
||
24 | |||
25 | /** |
||
26 | * @var ExceptionHandlerInterface |
||
27 | */ |
||
28 | private $handler; |
||
29 | |||
30 | 5 | public function __construct(string $bundleSrcBasePath, ExceptionHandlerInterface $handler, CacheInterface $cache) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 4 | public function render(string $appName, array $store, array $metas = []) : string |
|
56 | |||
57 | /** |
||
58 | * @param string $appName |
||
59 | */ |
||
60 | 4 | private function saveSnapshot(string $appName) : void |
|
70 | |||
71 | 2 | private function getSsrCode(array $store, array $metas) : string |
|
83 | } |
||
84 |