mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
do only overwrite settings, which can be altered in current screen
This commit is contained in:
parent
bf1737a22e
commit
8fef1ec612
2 changed files with 9 additions and 2 deletions
|
@ -62,11 +62,12 @@ return [
|
|||
$settings = $container->get('wcgateway.settings');
|
||||
$fields = $container->get('wcgateway.settings.fields');
|
||||
$webhookRegistrar = $container->get('webhook.registrar');
|
||||
$state = $container->get('onboarding.state');
|
||||
|
||||
global $wpdb;
|
||||
$cacheFactory = new CachePoolFactory($wpdb);
|
||||
$pool = $cacheFactory->createCachePool('ppcp-token');
|
||||
return new SettingsListener($settings, $fields, $webhookRegistrar, $pool);
|
||||
return new SettingsListener($settings, $fields, $webhookRegistrar, $pool, $state);
|
||||
},
|
||||
'wcgateway.order-processor' => static function (ContainerInterface $container): OrderProcessor {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue