mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
♻️ Use new connection manager in REST endpoint
This commit is contained in:
parent
a2221e5233
commit
45db5abb34
2 changed files with 24 additions and 142 deletions
|
@ -81,10 +81,7 @@ return array(
|
|||
},
|
||||
'settings.rest.connect_manual' => static function ( ContainerInterface $container ) : ConnectManualRestEndpoint {
|
||||
return new ConnectManualRestEndpoint(
|
||||
$container->get( 'api.paypal-host-production' ),
|
||||
$container->get( 'api.paypal-host-sandbox' ),
|
||||
$container->get( 'woocommerce.logger.woocommerce' ),
|
||||
$container->get( 'settings.data.general' )
|
||||
$container->get( 'settings.service.connection_manager' ),
|
||||
);
|
||||
},
|
||||
'settings.rest.login_link' => static function ( ContainerInterface $container ) : LoginLinkRestEndpoint {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue