-
Notifications
You must be signed in to change notification settings - Fork 8
Error when re-installing the plugin #14
Comments
I am using this code to remove the entry when the App is deleted: public function appDeleted(SymfonyRequest $request): Response
} |
Thanks for the code. May I ask, how you get this function called? Are you listening to the webhook or is there some endpoint called once it's deleted? |
Sure, I am using a webhook: The function should already be included in AppLifecycleEventController.php |
Just checked the archived app example, I guess you mean this? https://github.com/shopwareLabs/AppExample/blob/master/src/SwagAppsystem/Controller/AppLifecycleEventController.php |
- add null as a possible return type in ShopRepositoryInterface - adjust implementation of ShopRepository to return null if shop by id does not exist - adjust RegistrationService to call create shop in db only if not exist yet
I created a (small) fix for the problem in the start post. Pull request in shopware/app-bundle-symfony#27 and #16 During the registration process, it checks whether the store already exists. It would probably make sense if there would also be an automatic deregistration, similar to the registration, without having to configure the app.deleted webhook yourself in your app manifest.xml and evaluate it on the server side. |
ps: I am currently working on an AppLifecycle bundle for our app server. You can find the current code in the dev branch of repo bitsandlikes-shopware/app-lifecycle-bundle. |
…ue-14 Fix for AppTemplate issue #14
The registration process has no check for an existing database entry. After uninstalling the app, this error is shown when trying to install:
The text was updated successfully, but these errors were encountered: