You are here

public function InvoicePrintBuilder::__construct in Commerce Invoice 8.2

Constructs a new InvoicePrintBuilder object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\entity_print\PrintBuilderInterface $print_builder: The Entity print builder.

\Drupal\entity_print\FilenameGeneratorInterface $filename_generator: The Entity print filename generator.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

src/InvoicePrintBuilder.php, line 79

Class

InvoicePrintBuilder
The print builder service.

Namespace

Drupal\commerce_invoice

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, PrintBuilderInterface $print_builder, FilenameGeneratorInterface $filename_generator, EventDispatcherInterface $event_dispatcher, AccountInterface $current_user) {
  $this->configFactory = $config_factory;
  $this->fileStorage = $entity_type_manager
    ->getStorage('file');
  $this->printBuilder = $print_builder;
  $this->filenameGenerator = $filename_generator;
  $this->eventDispatcher = $event_dispatcher;
  $this->currentUser = $current_user;
}