Skip to content

Commit

Permalink
Install assets on update and install
Browse files Browse the repository at this point in the history
  • Loading branch information
peterojo committed Sep 27, 2023
1 parent f3dca65 commit 5328f62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AdyenPaymentShopware6.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down Expand Up @@ -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', '<')) {
Expand Down

0 comments on commit 5328f62

Please sign in to comment.