public function InvoiceController::__construct in Commerce Invoice 8.2
Constructs a new InvoiceController object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\commerce_invoice\InvoiceFileManagerInterface $invoice_file_manager: The invoice file manager.
\Drupal\commerce_invoice\InvoiceGeneratorInterface $invoice_generator: The invoice generator.
File
- src/
Controller/ InvoiceController.php, line 57
Class
- InvoiceController
- Provides the invoice download route.
Namespace
Drupal\commerce_invoice\ControllerCode
public function __construct(ConfigFactoryInterface $config_factory, InvoiceFileManagerInterface $invoice_file_manager, InvoiceGeneratorInterface $invoice_generator) {
$this->configFactory = $config_factory;
$this->invoiceFileManager = $invoice_file_manager;
$this->invoiceGenerator = $invoice_generator;
}