You are here

public function TransactorHandler::__construct in Transaction 8

Creates a new TransactorHandler object.

Parameters

\Drupal\transaction\TransactionServiceInterface $transaction_service: The transaction service.

\Drupal\Core\Entity\EntityStorageInterface $transaction_storage: The transaction entity type storage.

\Drupal\Component\Datetime\Time $time_service: The time service.

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

\Drupal\Core\Utility\Token $token: The token service.

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

\Drupal\Core\Lock\LockBackendInterface $lock: The lock service.

File

src/TransactorHandler.php, line 91

Class

TransactorHandler
Transactor entity handler.

Namespace

Drupal\transaction

Code

public function __construct(TransactionServiceInterface $transaction_service, EntityStorageInterface $transaction_storage, Time $time_service, AccountInterface $current_user, Token $token, EventDispatcherInterface $event_dispatcher, LockBackendInterface $lock) {
  $this->transactionService = $transaction_service;
  $this->transactionStorage = $transaction_storage;
  $this->timeService = $time_service;
  $this->currentUser = $current_user;
  $this->token = $token;
  $this->eventDispatcher = $event_dispatcher;
  $this->lock = $lock;
}