Skip to content
Snippets Groups Projects

Use TimeInterface instead of Time class

+ 3
3
@@ -13,7 +13,7 @@ use Drupal\user\UserInterface;
@@ -13,7 +13,7 @@ use Drupal\user\UserInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Component\Datetime\Time;
use Drupal\Component\Datetime\TimeInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/**
/**
@@ -77,7 +77,7 @@ class TransactorHandler implements TransactorHandlerInterface {
@@ -77,7 +77,7 @@ class TransactorHandler implements TransactorHandlerInterface {
* The transaction service.
* The transaction service.
* @param \Drupal\Core\Entity\EntityStorageInterface $transaction_storage
* @param \Drupal\Core\Entity\EntityStorageInterface $transaction_storage
* The transaction entity type storage.
* The transaction entity type storage.
* @param \Drupal\Component\Datetime\Time $time_service
* @param \Drupal\Component\Datetime\TimeInterface $time_service
* The time service.
* The time service.
* @param \Drupal\Core\Session\AccountInterface $current_user
* @param \Drupal\Core\Session\AccountInterface $current_user
* The current user.
* The current user.
@@ -88,7 +88,7 @@ class TransactorHandler implements TransactorHandlerInterface {
@@ -88,7 +88,7 @@ class TransactorHandler implements TransactorHandlerInterface {
* @param \Drupal\Core\Lock\LockBackendInterface $lock
* @param \Drupal\Core\Lock\LockBackendInterface $lock
* The lock service.
* The lock service.
*/
*/
public function __construct(TransactionServiceInterface $transaction_service, EntityStorageInterface $transaction_storage, Time $time_service, AccountInterface $current_user, Token $token, EventDispatcherInterface $event_dispatcher, LockBackendInterface $lock) {
public function __construct(TransactionServiceInterface $transaction_service, EntityStorageInterface $transaction_storage, TimeInterface $time_service, AccountInterface $current_user, Token $token, EventDispatcherInterface $event_dispatcher, LockBackendInterface $lock) {
$this->transactionService = $transaction_service;
$this->transactionService = $transaction_service;
$this->transactionStorage = $transaction_storage;
$this->transactionStorage = $transaction_storage;
$this->timeService = $time_service;
$this->timeService = $time_service;
Loading