mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
♻️ Refactor to use the EnvironmentConfig
This commit is contained in:
parent
ed13064a16
commit
a1f80f1d3d
3 changed files with 42 additions and 59 deletions
|
@ -201,10 +201,8 @@ return array(
|
|||
'settings.service.connection_manager' => static function ( ContainerInterface $container ) : ConnectionManager {
|
||||
return new ConnectionManager(
|
||||
$container->get( 'settings.data.common' ),
|
||||
$container->get( 'api.paypal-host-production' ),
|
||||
$container->get( 'api.paypal-host-sandbox' ),
|
||||
$container->get( 'api.endpoint.login-seller-production' ),
|
||||
$container->get( 'api.endpoint.login-seller-sandbox' ),
|
||||
$container->get( 'api.env.paypal-host' ),
|
||||
$container->get( 'api.env.endpoint.login-seller' ),
|
||||
$container->get( 'api.repository.partner-referrals-data' ),
|
||||
$container->get( 'woocommerce.logger.woocommerce' ),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue