| 1 | <?php |
||
| 14 | class CachedDomainsListWarmer extends CacheWarmer |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Pdp Public Suffix List Manager HTTP adapter. |
||
| 18 | * |
||
| 19 | * @var HttpAdapterInterface|null |
||
| 20 | */ |
||
| 21 | private $httpAdapter; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Cache warmer constructor with optional dependency. |
||
| 25 | * |
||
| 26 | * @param HttpAdapterInterface|null $httpAdapter |
||
| 27 | */ |
||
| 28 | 9 | public function __construct(HttpAdapterInterface $httpAdapter = null) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 3 | public function isOptional() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 6 | public function warmUp($cacheDir) |
|
| 53 | } |
||
| 54 |