mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
♻️ Use EnvironmentConfig in ConnectionUrlGenerator
This commit is contained in:
parent
a1f80f1d3d
commit
3f691bea01
6 changed files with 54 additions and 85 deletions
|
@ -896,4 +896,12 @@ return array(
|
|||
$container->get( 'api.endpoint.login-seller-sandbox' )
|
||||
);
|
||||
},
|
||||
'api.env.endpoint.partner-referrals' => static function ( ContainerInterface $container ) : EnvironmentConfig {
|
||||
/** @type EnvironmentConfig<PartnerReferrals> Configuration object */
|
||||
return EnvironmentConfig::create(
|
||||
PartnerReferrals::class,
|
||||
$container->get( 'api.endpoint.partner-referrals-production' ),
|
||||
$container->get( 'api.endpoint.partner-referrals-sandbox' )
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue