| 1 | <?php |
||
| 21 | class CacheCleanup implements CacheWarmerInterface |
||
| 22 | { |
||
| 23 | protected $builder; |
||
| 24 | protected $filesystem; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Constructor. |
||
| 28 | * |
||
| 29 | * @param SaveAreaBuilder $builder |
||
| 30 | * @param Filesystem $filesystem |
||
| 31 | */ |
||
| 32 | 12 | public function __construct(SaveAreaBuilder $builder, Filesystem $filesystem) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | 1 | public function warmUp($cacheDir) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | 11 | public function isOptional() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Cleans up to clear the temporary directory after warming up. |
||
| 56 | */ |
||
| 57 | 2 | public function cleanUp() |
|
| 61 | } |
||
| 62 |