You are here

public function ExportCommand::__construct in Tome 8

Constructs an ExportCommand instance.

Parameters

\Drupal\tome_sync\ExporterInterface $exporter: The exporter.

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

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

File

modules/tome_sync/src/Commands/ExportCommand.php, line 69

Class

ExportCommand
Contains the tome:export command.

Namespace

Drupal\tome_sync\Commands

Code

public function __construct(ExporterInterface $exporter, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher) {
  parent::__construct();
  $this->exporter = $exporter;
  $this->entityTypeManager = $entity_type_manager;
  $this->eventDispatcher = $event_dispatcher;
}