mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Move signup link cache into a service
This commit is contained in:
parent
0c5dfbc3e8
commit
9b88d1a4ae
2 changed files with 6 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue