Move signup link cache into a service

This commit is contained in:
dinamiko 2022-05-26 11:29:09 +02:00
parent 0c5dfbc3e8
commit 9b88d1a4ae
2 changed files with 6 additions and 3 deletions

View file

@ -219,7 +219,7 @@ return array(
$cache = new Cache( 'ppcp-paypal-bearer' );
$bearer = $container->get( 'api.bearer' );
$page_id = $container->get( 'wcgateway.current-ppcp-settings-page-id' );
$signup_link_cache = new Cache( 'ppcp-paypal-signup-link' );
$signup_link_cache = $container->get( 'onboarding.signup-link-cache' );
return new SettingsListener( $settings, $fields, $webhook_registrar, $cache, $state, $bearer, $page_id, $signup_link_cache );
},
'wcgateway.order-processor' => static function ( ContainerInterface $container ): OrderProcessor {