From 85cf36e110f3bf49784089a0baf6bd0b54fac5f2 Mon Sep 17 00:00:00 2001 From: Dmytro Voskoboinikov Date: Tue, 26 Sep 2023 17:43:47 -0500 Subject: [PATCH] AC-8477: /page_cache/block/esi handles param enhancement --- app/code/Magento/PageCache/Controller/Block.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/PageCache/Controller/Block.php b/app/code/Magento/PageCache/Controller/Block.php index 01d09ba112587..8bbef4f74e19e 100644 --- a/app/code/Magento/PageCache/Controller/Block.php +++ b/app/code/Magento/PageCache/Controller/Block.php @@ -92,7 +92,8 @@ public function __construct( ?: ObjectManager::getInstance()->get(LayoutCacheKeyInterface::class); $this->regexValidatorFactory = $regexValidatorFactory ?: ObjectManager::getInstance()->get(RegexFactory::class); - $this->config = $scopeConfig; + $this->config = $scopeConfig + ?: ObjectManager::getInstance()->get(ScopeConfigInterface::class); } /**