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 | const PURGE_HOSTS_DELIMITER = ','; |
||
25 | |||
26 | /** |
||
27 | * @var ScopeConfigInterface |
||
28 | */ |
||
29 | protected $scopeConfig; |
||
30 | |||
31 | /** |
||
32 | * GeneralConfigProvider constructor. |
||
33 | * @param ScopeConfigInterface $scopeConfig |
||
34 | */ |
||
35 | public function __construct(ScopeConfigInterface $scopeConfig) |
||
39 | |||
40 | /** |
||
41 | * @return bool |
||
42 | */ |
||
43 | public function isPurgeCustomHostEnabled(): bool |
||
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | public function getCustomPurgeHosts(): array |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getAdditionalHostForHeader(): string |
||
65 | } |
||
66 |