You are here

public function OrderPlacedSubscriber::__construct in Commerce Invoice 8.2

Constructs a new OrderPlacedSubscriber object.

Parameters

\Drupal\commerce_invoice\InvoiceGeneratorInterface $invoice_generator: The invoice generator.

File

src/EventSubscriber/OrderPlacedSubscriber.php, line 25

Class

OrderPlacedSubscriber

Namespace

Drupal\commerce_invoice\EventSubscriber

Code

public function __construct(InvoiceGeneratorInterface $invoice_generator) {
  $this->invoiceGenerator = $invoice_generator;
}