Skip to content

Commit

Permalink
Merge pull request #171 from PrestaShopCorp/install-event-bus-at-upgrade
Browse files Browse the repository at this point in the history
Trigger installation of ps_eventbus during upgrade to v4
  • Loading branch information
hschoenenberger authored Apr 23, 2021
2 parents 0b43260 + 8a076e7 commit 0e4ca9f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions upgrade/upgrade-4.0.0.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

/**
* @param Ps_accounts $module
*/
function upgrade_module_4_0_0($module)
{
$moduleInstaller = $module->getService(\PrestaShop\Module\PsAccounts\Installer\Installer::class);

// Ignore fail on ps_eventbus install
$moduleInstaller->installModule('ps_eventbus');

return true;
}

0 comments on commit 0e4ca9f

Please sign in to comment.