Skip to content

Commit 55f9379

Browse files
committed
Use class as integration key.
1 parent 691d1dd commit 55f9379

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pronamic-pay-with-mollie-for-gravity-forms.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ function( $modules ) {
6060
add_filter(
6161
'pronamic_pay_plugin_integrations',
6262
function( $integrations ) {
63-
$integrations[] = new \Pronamic\WordPress\Pay\Extensions\GravityForms\Extension();
63+
$class = \Pronamic\WordPress\Pay\Extensions\GravityForms\Extension::class;
64+
65+
if ( ! array_key_exists( $class, $integrations ) ) {
66+
$integrations[ $class ] = new $class();
67+
}
6468

6569
return $integrations;
6670
}

0 commit comments

Comments
 (0)