| 1 | <?php |
||
| 18 | class PurgingConfigProvider implements PurgingConfigProviderInterface |
||
| 19 | { |
||
| 20 | const XML_PATH_USE_CUSTOM_HOST = 'lm_varnish/purge/different_purge_host'; |
||
| 21 | const XML_PATH_CUSTOM_HOST = 'lm_varnish/purge/custom_host'; |
||
| 22 | const XML_PATH_CUSTOM_HEADER_HOST = 'lm_varnish/purge/header_host'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var ScopeConfigInterface |
||
| 26 | */ |
||
| 27 | protected $scopeConfig; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * GeneralConfigProvider constructor. |
||
| 31 | * @param ScopeConfigInterface $scopeConfig |
||
| 32 | */ |
||
| 33 | public function __construct(ScopeConfigInterface $scopeConfig) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | public function isPurgeCustomHostEnabled(): bool |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getCustomPurgeHost(): string |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getAdditionalHostForHeader(): string |
||
| 61 | } |
||
| 62 |