| 1 | <?php |
||
| 11 | class ConfigFileCacheWarmer implements CacheWarmerInterface |
||
| 12 | { |
||
| 13 | protected $query; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param ScriptUrlQuery $query |
||
| 17 | */ |
||
| 18 | public function __construct(ScriptUrlQuery $query) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Checks whether this warmer is optional or not. |
||
| 25 | * |
||
| 26 | * Optional warmers can be ignored on certain conditions. |
||
| 27 | * |
||
| 28 | * A warmer should return true if the cache can be |
||
| 29 | * generated incrementally and on-demand. |
||
| 30 | * |
||
| 31 | * @return bool true if the warmer is optional, false otherwise |
||
| 32 | */ |
||
| 33 | public function isOptional() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Warms up the cache. |
||
| 40 | * |
||
| 41 | * @param string $cacheDir The cache directory |
||
| 42 | */ |
||
| 43 | public function warmUp($cacheDir) |
||
| 47 | } |
||
| 48 |