mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
♻️ Use cache service instead of direct creation
This commit is contained in:
parent
0b77ff9e55
commit
81ca5dd00e
3 changed files with 7 additions and 7 deletions
|
@ -129,8 +129,8 @@ return array(
|
|||
$login_seller_sandbox = $container->get( 'api.endpoint.login-seller-sandbox' );
|
||||
$partner_referrals_data = $container->get( 'api.repository.partner-referrals-data' );
|
||||
$settings = $container->get( 'wcgateway.settings' );
|
||||
$cache = new Cache( 'ppcp-paypal-bearer' );
|
||||
$logger = $container->get( 'woocommerce.logger.woocommerce' );
|
||||
$cache = $container->get( 'api.paypal-bearer-cache' );
|
||||
$logger = $container->get( 'woocommerce.logger.woocommerce' );
|
||||
return new LoginSellerEndpoint(
|
||||
$request_data,
|
||||
$login_seller_production,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue