Skip to content

Commit

Permalink
Add Jetpack autoloader to fix #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Mar 10, 2023
1 parent f78ee40 commit 53c3e9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true,
"bamarni/composer-bin-plugin": true
"bamarni/composer-bin-plugin": true,
"automattic/jetpack-autoloader": true
}
},
"require": {
"php": ">=7.4",
"ext-intl": "*",
"automattic/jetpack-autoloader": "^2.11",
"justinrainbow/json-schema": "^5.2",
"pronamic/wp-http": "^1.2",
"pronamic/wp-money": "^2.2",
"wp-pay/core": "^4.6"
"wp-pay/core": "dev-develop as 4.6"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
Expand Down
8 changes: 8 additions & 0 deletions pronamic-pay-adyen.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
* @package Pronamic\WordPress\Pay\Gateways\Adyen
*/

/**
* Autoload.
*/
require_once __DIR__ . '/vendor/autoload_packages.php';

/**
* Gateway.
*/
add_filter(
'pronamic_pay_gateways',
function( $gateways ) {
Expand Down

0 comments on commit 53c3e9b

Please sign in to comment.