33 private $storeManager;
45 $this->scopeConfig = $scopeConfig;
46 $this->configPaths = $configPaths;
55 public function getReport()
60 foreach ($this->storeManager->getWebsites() as
$website) {
61 $configReport = array_merge(
68 foreach ($this->storeManager->getStores() as
$store) {
69 $configReport = array_merge(
74 return new \IteratorIterator(
new \ArrayIterator($configReport));
84 private function generateReportForScope($scope, $scopeId)
87 foreach ($this->configPaths as $configPath) {
89 "config_path" => $configPath,
91 "scope_id" => $scopeId,
92 "value" => $this->scopeConfig->getValue(
__construct(ScopeConfigInterface $scopeConfig, StoreManagerInterface $storeManager, array $configPaths)