create(self::class); $path = $prefix ? Helper::PREFIX . '/' . $path : $path; return $configGetter->getConfigValue($path); } public function __construct(ScopeConfigInterface $scopeConfig) { $this->scopeConfig = $scopeConfig; } public function getConfigValue($fullPath) { return $this->scopeConfig->getValue($fullPath); } }