Remove unused property

This commit is contained in:
dinamiko 2021-05-19 16:01:09 +02:00
parent 47c4c62d6f
commit 746e26397a
2 changed files with 2 additions and 7 deletions

View file

@ -148,7 +148,6 @@ return array(
$settings = $container->get( 'wcgateway.settings' );
$environment = $container->get( 'onboarding.environment' );
$logger = $container->get( 'woocommerce.logger.woocommerce' );
$payment_token_repository = $container->get( 'subscription.repository.payment-token' );
return new OrderProcessor(
$session_handler,
$order_endpoint,
@ -157,8 +156,7 @@ return array(
$authorized_payments_processor,
$settings,
$logger,
$environment->current_environment_is( Environment::SANDBOX ),
$payment_token_repository
$environment->current_environment_is( Environment::SANDBOX )
);
},
'wcgateway.processor.refunds' => static function ( $container ): RefundProcessor {

View file

@ -106,7 +106,6 @@ class OrderProcessor {
* @param Settings $settings The Settings.
* @param LoggerInterface $logger A logger service.
* @param bool $sandbox_mode Whether sandbox mode enabled.
* @param PaymentTokenRepository $payment_token_repository The payment token repository.
*/
public function __construct(
SessionHandler $session_handler,
@ -116,8 +115,7 @@ class OrderProcessor {
AuthorizedPaymentsProcessor $authorized_payments_processor,
Settings $settings,
LoggerInterface $logger,
bool $sandbox_mode,
PaymentTokenRepository $payment_token_repository
bool $sandbox_mode
) {
$this->session_handler = $session_handler;
@ -128,7 +126,6 @@ class OrderProcessor {
$this->settings = $settings;
$this->sandbox_mode = $sandbox_mode;
$this->logger = $logger;
$this->payment_token_repository = $payment_token_repository;
}
/**