Skip to content

Commit

Permalink
CommandPersister refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadariaga committed May 20, 2022
1 parent 0eb08f5 commit e66c24d
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions Infrastructure/Domain/Service/Lifecycle/CommandPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,14 @@

class CommandPersister
{
protected $commandEventSubscriber;
protected $entityEventSubscriber;
protected $entityPersister;
protected $logger;

protected $latestCommandlog;

public function __construct(
CommandEventSubscriber $commandEventSubscriber,
EntityEventSubscriber $entityEventSubscriber,
EntityPersisterInterface $entityPersister,
LoggerInterface $logger
private CommandEventSubscriber $commandEventSubscriber,
private EntityEventSubscriber $entityEventSubscriber,
private EntityPersisterInterface $entityPersister,
private LoggerInterface $logger
) {
$this->commandEventSubscriber = $commandEventSubscriber;
$this->entityEventSubscriber = $entityEventSubscriber;
$this->entityPersister = $entityPersister;
$this->logger = $logger;
}

/**
Expand Down

0 comments on commit e66c24d

Please sign in to comment.