27 private $scopeCodeResolver;
44 $this->scopeCodeResolver = $scopeCodeResolver;
45 $this->types = $types;
61 if ($scope ===
'store') {
63 }
elseif ($scope ===
'website') {
67 if ($scope !==
'default') {
68 if (is_numeric($scopeCode) || $scopeCode ===
null) {
69 $scopeCode = $this->scopeCodeResolver->resolve($scope, $scopeCode);
71 $scopeCode = $scopeCode->getCode();
74 $configPath .=
'/' . $scopeCode;
78 $configPath .=
'/' .
$path;
80 return $this->
get(
'system', $configPath);
104 foreach ($this->types as
$type) {
107 $this->scopeCodeResolver->clean();
127 public function get($configType,
$path =
'', $default =
null)
130 if (isset($this->types[$configType])) {
elseif(isset( $params[ 'redirect_parent']))
isSetFlag($path, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null)
__construct(ScopeCodeResolver $scopeCodeResolver, array $types=[])
getValue( $path=null, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null)