Skip to content

Commit b372531

Browse files
committed
Improve compatiblity with 5.5
1 parent 97cedad commit b372531

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Bootstrap/Functional/bootstrap.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ public static function start()
3939
$repository = $container->get('models')->getRepository(Shop::class);
4040

4141
$shop = $repository->getActiveDefault();
42-
Shopware()->Container()->get('shopware.components.shop_registration_service')->registerShop($shop);
42+
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+
}
4347

4448
$_SERVER['HTTP_HOST'] = $shop->getHost();
4549
}

0 commit comments

Comments
 (0)