| 1 | <?php |
||
| 10 | class TemplateCacheCacheWarmer implements CacheWarmerInterface |
||
| 11 | { |
||
| 12 | protected $container; |
||
| 13 | protected $finder; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Constructor. |
||
| 17 | * |
||
| 18 | * @param ContainerInterface $container The dependency injection container |
||
| 19 | * @param TemplateFinderInterface $finder The template paths cache warmer |
||
| 20 | */ |
||
| 21 | public function __construct(ContainerInterface $container, TemplateFinderInterface $finder) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Warms up the cache. |
||
| 33 | * |
||
| 34 | * @param string $cacheDir The cache directory |
||
| 35 | */ |
||
| 36 | public function warmUp($cacheDir) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Checks whether this warmer is optional or not. |
||
| 56 | * |
||
| 57 | * @return bool always true |
||
| 58 | */ |
||
| 59 | public function isOptional() |
||
| 63 | } |
||
| 64 |