Skip to content

Commit

Permalink
Merge pull request #20 from hawksearch/bugfix/HC-1449-new-stores-brea…
Browse files Browse the repository at this point in the history
…k-full-reindexing

feat: update ConfigProvider default params and method visibility
  • Loading branch information
martin-cod authored Oct 24, 2023
2 parents 9cf634d + 6aa7528 commit 4cb4138
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Model/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ public function __construct(
* @param string $path Absolute path
* @return string
*/
private function getPath($path)
public function getPath($path)
{
return $this->configRootPath . '/' . $this->configGroup . '/' . $path;
}

/**
* @inheritDoc
*/
public function getConfig(string $path, $scopeId = null, $scope = ScopeInterface::SCOPE_STORE)
public function getConfig(string $path, $scopeId = null, $scope = ScopeInterface::SCOPE_STORES)
{
return $this->scopeConfig->getValue(
$this->getPath($path),
Expand Down
2 changes: 1 addition & 1 deletion Model/ConfigProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ interface ConfigProviderInterface
* @param string $scope
* @return mixed
*/
public function getConfig(string $path, $scopeId = null, $scope = ScopeInterface::SCOPE_STORE);
public function getConfig(string $path, $scopeId = null, $scope = ScopeInterface::SCOPE_STORES);
}

0 comments on commit 4cb4138

Please sign in to comment.