Skip to content

Commit 801be7b

Browse files
committed
[varnish] re-add constant, as deprecated
1 parent 7201648 commit 801be7b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

app/code/Magento/PageCache/Model/Config.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ class Config
5656
*/
5757
public const VARNISH_6_CONFIGURATION_PATH = 'system/full_page_cache/varnish6/path';
5858

59+
/**
60+
* @deprecated Varnish 5 is EOL
61+
* XML path to Varnish 5 config template path
62+
*/
63+
public const VARNISH_5_CONFIGURATION_PATH = 'system/full_page_cache/varnish5/path';
64+
65+
/**
66+
* @deprecated Varnish 4 is EOL
67+
* XML path to Varnish 4 config template path
68+
*/
69+
public const VARNISH_4_CONFIGURATION_PATH = 'system/full_page_cache/varnish4/path';
70+
5971
/**
6072
* @var \Magento\Framework\App\Cache\StateInterface $_cacheState
6173
*/

app/code/Magento/PageCache/Model/Varnish/VclTemplateLocator.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,28 @@ class VclTemplateLocator implements VclTemplateLocatorInterface
2323
*/
2424
const VARNISH_6_CONFIGURATION_PATH = 'system/full_page_cache/varnish6/path';
2525

26+
/**
27+
* @deprecated Varnish 5 is EOL
28+
* XML path to Varnish 5 config template path
29+
*/
30+
const VARNISH_5_CONFIGURATION_PATH = 'system/full_page_cache/varnish5/path';
31+
32+
/**
33+
* @deprecated Varnish 4 is EOL
34+
* XML path to Varnish 4 config template path
35+
*/
36+
const VARNISH_4_CONFIGURATION_PATH = 'system/full_page_cache/varnish4/path';
37+
38+
/**
39+
* @deprecated Varnish 4 is EOL
40+
*/
41+
const VARNISH_SUPPORTED_VERSION_4 = '4';
42+
43+
/**
44+
* @deprecated Varnish 5 is EOL
45+
*/
46+
const VARNISH_SUPPORTED_VERSION_5 = '5';
47+
2648
/**
2749
* Varnish 6 supported version
2850
*/

0 commit comments

Comments
 (0)