1 | <?php |
||
15 | class HandlebarsCacheWarmer implements CacheWarmerInterface |
||
16 | { |
||
17 | private $environment; |
||
18 | private $finder; |
||
19 | private $logger; |
||
20 | |||
21 | /** |
||
22 | * Constructor. |
||
23 | * |
||
24 | * @param HandlebarsEngine $environment The handlebars engine |
||
25 | * @param TemplateFinderInterface $finder The template paths cache warmer |
||
26 | * @param LoggerInterface $logger |
||
27 | */ |
||
28 | 3 | public function __construct( |
|
41 | /** |
||
42 | * Warms up the cache. |
||
43 | * |
||
44 | * @param string $cacheDir The cache directory |
||
45 | */ |
||
46 | 2 | public function warmUp($cacheDir) |
|
69 | |||
70 | /** |
||
71 | * Checks whether this warmer is optional or not. |
||
72 | * |
||
73 | * @return Boolean always true |
||
74 | */ |
||
75 | 1 | public function isOptional() |
|
79 | } |
||
80 |