We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97cedad commit b372531Copy full SHA for b372531
src/Bootstrap/Functional/bootstrap.php
@@ -39,7 +39,11 @@ public static function start()
39
$repository = $container->get('models')->getRepository(Shop::class);
40
41
$shop = $repository->getActiveDefault();
42
- Shopware()->Container()->get('shopware.components.shop_registration_service')->registerShop($shop);
+ if (Shopware()->Container()->has('shopware.components.shop_registration_service')) {
43
+ Shopware()->Container()->get('shopware.components.shop_registration_service')->registerShop($shop);
44
+ } else {
45
+ $shop->registerResources();
46
+ }
47
48
$_SERVER['HTTP_HOST'] = $shop->getHost();
49
}
0 commit comments