do only overwrite settings, which can be altered in current screen

This commit is contained in:
David Remer 2020-07-10 08:41:23 +03:00
parent bf1737a22e
commit 8fef1ec612
2 changed files with 9 additions and 2 deletions

View file

@ -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 {