mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Remove unnecessary dependency
This commit is contained in:
parent
9096a9f111
commit
b68673e941
2 changed files with 2 additions and 12 deletions
|
@ -2303,8 +2303,7 @@ return array(
|
|||
'wcgateway.pay-upon-invoice-helper' => static function( ContainerInterface $container ): PayUponInvoiceHelper {
|
||||
return new PayUponInvoiceHelper(
|
||||
$container->get( 'wcgateway.checkout-helper' ),
|
||||
$container->get( 'api.shop.country' ),
|
||||
$container->get( 'wcgateway.pay-upon-invoice-product-status' )
|
||||
$container->get( 'wcgateway.settings' )
|
||||
);
|
||||
},
|
||||
'wcgateway.pay-upon-invoice-product-status' => static function( ContainerInterface $container ): PayUponInvoiceProductStatus {
|
||||
|
|
|
@ -25,13 +25,6 @@ class PayUponInvoiceHelper {
|
|||
*/
|
||||
protected $checkout_helper;
|
||||
|
||||
/**
|
||||
* The selected shop country.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $shop_country;
|
||||
|
||||
/**
|
||||
* The settings.
|
||||
*
|
||||
|
@ -43,13 +36,11 @@ class PayUponInvoiceHelper {
|
|||
* PayUponInvoiceHelper constructor.
|
||||
*
|
||||
* @param CheckoutHelper $checkout_helper The checkout helper.
|
||||
* @param string $shop_country The selected shop country.
|
||||
* @param Settings $settings The Settings.
|
||||
*/
|
||||
public function __construct( CheckoutHelper $checkout_helper, string $shop_country, Settings $settings ) {
|
||||
public function __construct( CheckoutHelper $checkout_helper, Settings $settings ) {
|
||||
|
||||
$this->checkout_helper = $checkout_helper;
|
||||
$this->shop_country = $shop_country;
|
||||
$this->settings = $settings;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue