Closed Weegy closed 6 years ago
Setting the shop ressources
$configValue = Shopware()->Models()->getRepository('Shopware\Models\Config\Value')->findOneBy(['value' => $this->shopKey]);
$this->shop = $configValue ? $configValue->getShop() : null;
$this->shop->registerResources();