Commit 4ac96efd authored by Perry Franken's avatar Perry Franken Committed by Sascha Grossenbacher
Browse files

Issue #2977225 by perry.franken: PaymentMethodBase created...

Issue #2977225 by perry.franken: PaymentMethodBase created paymentStatusManager property dynamically
parent d2a5660d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -54,6 +54,13 @@ abstract class PaymentMethodBase extends PluginBase implements ContainerFactoryP
   */
  protected $token;

  /**
   * The payment status manager.
   *
   * @var \Drupal\payment\Plugin\Payment\Status\PaymentStatusManagerInterface
   */
  protected $paymentStatusManager;

  /**
   * Constructs a new instance.
   *
@@ -69,7 +76,7 @@ abstract class PaymentMethodBase extends PluginBase implements ContainerFactoryP
   *   The event dispatcher.
   * @param \Drupal\Core\Utility\Token $token
   *   The token API.
   * @param \Drupal\payment\Plugin\Payment\Status\PaymentStatusManagerInterface
   * @param \Drupal\payment\Plugin\Payment\Status\PaymentStatusManagerInterface $payment_status_manager
   *   The payment status manager.
   */
  public function __construct(array $configuration, $plugin_id, array $plugin_definition, ModuleHandlerInterface $module_handler, EventDispatcherInterface $event_dispatcher, Token $token, PaymentStatusManagerInterface $payment_status_manager) {