[TASK] Update Fluid dependency to 2.0
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / Core / Cache / FluidTemplateCache.php
index 507712b..6f4586d 100644 (file)
@@ -17,6 +17,8 @@ namespace TYPO3\CMS\Fluid\Core\Cache;
 use TYPO3\CMS\Core\Cache\Exception\InvalidDataException;
 use TYPO3\CMS\Core\Cache\Frontend\PhpFrontend;
 use TYPO3Fluid\Fluid\Core\Cache\FluidCacheInterface;
+use TYPO3Fluid\Fluid\Core\Cache\FluidCacheWarmerInterface;
+use TYPO3Fluid\Fluid\Core\Cache\StandardCacheWarmer;
 
 /**
  * Class FluidTemplateCache
@@ -60,4 +62,12 @@ class FluidTemplateCache extends PhpFrontend implements FluidCacheInterface
         }
         parent::set($entryIdentifier, $sourceCode, $tags, time() + 86400);
     }
+
+    /**
+     * @return FluidCacheWarmerInterface
+     */
+    public function getCacheWarmer()
+    {
+        return new StandardCacheWarmer();
+    }
 }