33 private $storeManager;
47 $this->appState = $appState;
61 ? $this->getConfigForAllStores(
$path)
62 : $this->getConfigForCurrentStore(
$path);
74 private function getConfigForAllStores(
string $path)
77 foreach ($this->storeManager->getStores() as
$store) {
78 $storesResult[] = explode(
80 $this->config->getValue(
$path, ScopeInterface::SCOPE_STORE,
$store->getCode())
84 return array_merge(...$storesResult);
93 private function getConfigForCurrentStore(
string $path)
95 $store = $this->storeManager->getStore();
97 return explode(
',', $this->config->getValue(
$path, ScopeInterface::SCOPE_STORE,
$store->getCode()));
__construct(State $appState, ScopeConfigInterface $config, StoreManagerInterface $storeManager)
getConfigCurrencies(string $path)