mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Remove unused property
This commit is contained in:
parent
47c4c62d6f
commit
746e26397a
2 changed files with 2 additions and 7 deletions
|
@ -148,7 +148,6 @@ return array(
|
||||||
$settings = $container->get( 'wcgateway.settings' );
|
$settings = $container->get( 'wcgateway.settings' );
|
||||||
$environment = $container->get( 'onboarding.environment' );
|
$environment = $container->get( 'onboarding.environment' );
|
||||||
$logger = $container->get( 'woocommerce.logger.woocommerce' );
|
$logger = $container->get( 'woocommerce.logger.woocommerce' );
|
||||||
$payment_token_repository = $container->get( 'subscription.repository.payment-token' );
|
|
||||||
return new OrderProcessor(
|
return new OrderProcessor(
|
||||||
$session_handler,
|
$session_handler,
|
||||||
$order_endpoint,
|
$order_endpoint,
|
||||||
|
@ -157,8 +156,7 @@ return array(
|
||||||
$authorized_payments_processor,
|
$authorized_payments_processor,
|
||||||
$settings,
|
$settings,
|
||||||
$logger,
|
$logger,
|
||||||
$environment->current_environment_is( Environment::SANDBOX ),
|
$environment->current_environment_is( Environment::SANDBOX )
|
||||||
$payment_token_repository
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
'wcgateway.processor.refunds' => static function ( $container ): RefundProcessor {
|
'wcgateway.processor.refunds' => static function ( $container ): RefundProcessor {
|
||||||
|
|
|
@ -106,7 +106,6 @@ class OrderProcessor {
|
||||||
* @param Settings $settings The Settings.
|
* @param Settings $settings The Settings.
|
||||||
* @param LoggerInterface $logger A logger service.
|
* @param LoggerInterface $logger A logger service.
|
||||||
* @param bool $sandbox_mode Whether sandbox mode enabled.
|
* @param bool $sandbox_mode Whether sandbox mode enabled.
|
||||||
* @param PaymentTokenRepository $payment_token_repository The payment token repository.
|
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
SessionHandler $session_handler,
|
SessionHandler $session_handler,
|
||||||
|
@ -116,8 +115,7 @@ class OrderProcessor {
|
||||||
AuthorizedPaymentsProcessor $authorized_payments_processor,
|
AuthorizedPaymentsProcessor $authorized_payments_processor,
|
||||||
Settings $settings,
|
Settings $settings,
|
||||||
LoggerInterface $logger,
|
LoggerInterface $logger,
|
||||||
bool $sandbox_mode,
|
bool $sandbox_mode
|
||||||
PaymentTokenRepository $payment_token_repository
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$this->session_handler = $session_handler;
|
$this->session_handler = $session_handler;
|
||||||
|
@ -128,7 +126,6 @@ class OrderProcessor {
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
$this->sandbox_mode = $sandbox_mode;
|
$this->sandbox_mode = $sandbox_mode;
|
||||||
$this->logger = $logger;
|
$this->logger = $logger;
|
||||||
$this->payment_token_repository = $payment_token_repository;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue