Skip to content

Commit

Permalink
Fix logger missing from Processor Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Apr 4, 2022
1 parent 11d567c commit 84d3dd6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@
use Courier\Message\CommandInterface;
use Courier\Processor\Handler\HandlerResultEnum;
use Courier\Processor\Handler\InvokeHandlerInterface;
use Psr\Log\LoggerInterface;

class UpdateDependencyStatusHandler implements InvokeHandlerInterface {
private DependencyRepositoryInterface $dependencyRepository;
private ProducerInterface $producer;
private LoggerInterface $logger;

public function __construct(
DependencyRepositoryInterface $dependencyRepository,
ProducerInterface $producer
ProducerInterface $producer,
LoggerInterface $logger
) {
$this->dependencyRepository = $dependencyRepository;
$this->producer = $producer;
$this->logger = $logger;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,24 @@
use Courier\Message\CommandInterface;
use Courier\Processor\Handler\HandlerResultEnum;
use Courier\Processor\Handler\InvokeHandlerInterface;
use Psr\Log\LoggerInterface;

final class UpdateVersionStatusHandler implements InvokeHandlerInterface {
private VersionRepositoryInterface $versionRepository;
private DependencyRepositoryInterface $dependencyRepository;
private ProducerInterface $producer;
private LoggerInterface $logger;

public function __construct(
VersionRepositoryInterface $versionRepository,
DependencyRepositoryInterface $dependencyRepository,
ProducerInterface $producer
ProducerInterface $producer,
LoggerInterface $logger
) {
$this->versionRepository = $versionRepository;
$this->dependencyRepository = $dependencyRepository;
$this->producer = $producer;
$this->logger = $logger;
}

/**
Expand Down

0 comments on commit 84d3dd6

Please sign in to comment.