mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Add caching service for reference transaction status
This commit is contained in:
parent
bc4bd9102f
commit
13284f2a4c
1 changed files with 5 additions and 1 deletions
|
@ -275,7 +275,8 @@ return array(
|
|||
);
|
||||
},
|
||||
'api.reference-transaction-status' => static fn ( ContainerInterface $container ): ReferenceTransactionStatus => new ReferenceTransactionStatus(
|
||||
$container->get( 'api.endpoint.partners' )
|
||||
$container->get( 'api.endpoint.partners' ),
|
||||
$container->get( 'api.reference-transaction-status-cache' )
|
||||
),
|
||||
'api.endpoint.catalog-products' => static function ( ContainerInterface $container ): CatalogProducts {
|
||||
return new CatalogProducts(
|
||||
|
@ -871,6 +872,9 @@ return array(
|
|||
'api.user-id-token-cache' => static function( ContainerInterface $container ): Cache {
|
||||
return new Cache( 'ppcp-id-token-cache' );
|
||||
},
|
||||
'api.reference-transaction-status-cache' => static function( ContainerInterface $container ): Cache {
|
||||
return new Cache( 'ppcp-reference-transaction-status-cache' );
|
||||
},
|
||||
'api.user-id-token' => static function( ContainerInterface $container ): UserIdToken {
|
||||
return new UserIdToken(
|
||||
$container->get( 'api.host' ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue