custom/plugins/DreiscCmsPro/src/Core/PluginConfig/PluginConfigFetcher.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace DreiscCmsPro\Core\PluginConfig;
  3. use Shopware\Core\System\SystemConfig\SystemConfigService;
  4. class PluginConfigFetcher
  5. {
  6.     public function __construct(SystemConfigService $systemConfigService)
  7.     {
  8.         $this->systemConfigService = $systemConfigService;
  9.     }
  10.     public function getPluginConfigArray(): array
  11.     {
  12.         $configArray = $this->systemConfigService->get('DreiscCmsPro.config') ?? [];
  13.         return $configArray;
  14.     }
  15. }