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); } /**