| 1 | <?php |
||
| 24 | class CacheLocator implements LocatorInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Saves a proxy list in the cache and invalidates it by demand |
||
| 28 | * |
||
| 29 | * @var CacherInterface |
||
| 30 | */ |
||
| 31 | private $proxyCacher; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * CacheLocator constructor. |
||
| 35 | * |
||
| 36 | * @param CacherInterface $proxyCacher Saves a proxy list in the cache and invalidates it by demand |
||
| 37 | */ |
||
| 38 | public function __construct(CacherInterface $proxyCacher) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function locate(): iterable |
||
| 52 | } |
||
| 53 |