55 $this->scopeConfig = $scopeConfig;
56 $this->algorithms = $algorithms;
68 $calculationType = $this->scopeConfig->getValue(
69 self::XML_PATH_RANGE_CALCULATION,
70 ScopeInterface::SCOPE_STORE
73 if (!isset($this->algorithms[$calculationType])) {
74 throw new LocalizedException(
__(
"The %1 value wasn't found in the algorithms.", $calculationType));
77 $className = $this->algorithms[$calculationType];
82 __(
'%1 doesn\'t extend \Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmInterface',
$className)
__construct(ObjectManagerInterface $objectManager, ScopeConfigInterface $scopeConfig, array $algorithms)
const XML_PATH_RANGE_CALCULATION
const RANGE_CALCULATION_IMPROVED
const RANGE_CALCULATION_MANUAL
const RANGE_CALCULATION_AUTO