Skip to content

Commit

Permalink
Fix autoloading webhook library when migrating
Browse files Browse the repository at this point in the history
ISSUE: CS-5073
  • Loading branch information
AleksandarBoljanovic committed Feb 26, 2024
1 parent d3a1064 commit 9369f63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/upgrade/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public static function loader(string $className)

include_once static::$pathTop . '/vendor/adyen/integration-core/src/' . str_replace('\\', '/', $path) . static::$fileExt;
}

if (strpos($className, 'Adyen\Webhook') !== false) {
$path = str_replace('Adyen\Webhook\\', '', $className);

include_once static::$pathTop . '/vendor/adyen/php-webhook-module/src/' . str_replace('\\', '/', $path) . static::$fileExt;
}
}

/**
Expand Down

0 comments on commit 9369f63

Please sign in to comment.