1 | <?php |
||
21 | class PurgingConfigProvider implements PurgingConfigProviderInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private const XML_PATH_USE_CUSTOM_HOST = 'lm_varnish/purge/different_purge_host'; |
||
27 | private const XML_PATH_CUSTOM_HOST = 'lm_varnish/purge/custom_host'; |
||
28 | private const XML_PATH_CUSTOM_HEADER_HOST = 'lm_varnish/purge/header_host'; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private const PURGE_HOSTS_DELIMITER = ','; |
||
34 | |||
35 | /** |
||
36 | * @var ScopeConfigInterface |
||
37 | */ |
||
38 | private $scopeConfig; |
||
39 | |||
40 | /** |
||
41 | * GeneralConfigProvider constructor. |
||
42 | * @param ScopeConfigInterface $scopeConfig |
||
43 | */ |
||
44 | public function __construct(ScopeConfigInterface $scopeConfig) |
||
48 | |||
49 | /** |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function isPurgeCustomHostEnabled(): bool |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getCustomPurgeHosts(): array |
||
66 | |||
67 | /** |
||
68 | * @return string |
||
69 | */ |
||
70 | public function getAdditionalHostForHeader(): string |
||
74 | } |
||
75 |