From 5328f6228cbeae08eb7f6e9aea406be8af5e5f7a Mon Sep 17 00:00:00 2001 From: peterojo Date: Wed, 27 Sep 2023 11:16:47 +0200 Subject: [PATCH] Install assets on update and install --- src/AdyenPaymentShopware6.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AdyenPaymentShopware6.php b/src/AdyenPaymentShopware6.php index ee2e0647..bb636972 100644 --- a/src/AdyenPaymentShopware6.php +++ b/src/AdyenPaymentShopware6.php @@ -95,6 +95,7 @@ public function installJsAssets($shopwareVersion) public function install(InstallContext $installContext): void { + $this->installJsAssets($installContext->getCurrentShopwareVersion()); foreach (PaymentMethods\PaymentMethods::PAYMENT_METHODS as $paymentMethod) { $this->addPaymentMethod(new $paymentMethod(), $installContext->getContext()); } @@ -135,6 +136,7 @@ public function uninstall(UninstallContext $uninstallContext): void public function update(UpdateContext $updateContext): void { + $this->installJsAssets($updateContext->getCurrentShopwareVersion()); $currentVersion = $updateContext->getCurrentPluginVersion(); if (\version_compare($currentVersion, '1.2.0', '<')) {