Skip to content

Commit

Permalink
fix/SHPWR-328_extend-plugin-update-function-for-backend-orders
Browse files Browse the repository at this point in the history
  • Loading branch information
rpWhittington committed Aug 22, 2018
1 parent 9ed1bd5 commit 332c1d4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Bootstrapping/ShopConfigSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function update() {
$configWriter = new RatepayConfigWriter(Shopware()->Db());

$configWriter->truncateConfigTables();
Shopware()->Pluginlogger()->info('ShopConfigSetup truncated tables');

$repo = Shopware()->Models()->getRepository('Shopware\Models\Shop\Shop');
$shops = $repo->findBy(['active' => true]);
Expand All @@ -51,7 +50,13 @@ public function update() {
public function uninstall() {}


public function updateRatepayConfig($configLoader, $configWriter, $shopId, $backend)
/**
* @param $configLoader
* @param $configWriter
* @param $shopId
* @param $backend
*/
private function updateRatepayConfig($configLoader, $configWriter, $shopId, $backend)
{
foreach (self::$AVAILABLE_COUNTRIES as $iso) {
$profileId = $configLoader->getProfileId($iso, $shopId, false, $backend);
Expand Down

0 comments on commit 332c1d4

Please sign in to comment.