Skip to content

Commit

Permalink
Merge pull request #62 from onefit/hotfix/TECH-1944-consumer-uses-log…
Browse files Browse the repository at this point in the history
…gerinterface

Update Logger with LoggerInterface
  • Loading branch information
jordicea authored Nov 20, 2020
2 parents 22fc03d + 65cbead commit c9a68e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Services/ConsumerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Closure;
use AvroSchema;
use Monolog\Logger;
use RdKafka\KafkaConsumer;
use Illuminate\Support\Arr;
use Psr\Log\LoggerInterface;
use AvroSchemaParseException;
use OneFit\Events\Models\Message;
use RdKafka\Exception as RdKafkaException;
Expand Down Expand Up @@ -39,20 +39,20 @@ class ConsumerService
private $schemas;

/**
* @var Logger
* @var LoggerInterface
*/
private $logger;

/**
* ConsumerService constructor.
*
* @param KafkaConsumer $consumer
* @param Message $message
* @param Closure $serializer
* @param array $schemas
* @param Logger|null $logger
* @param KafkaConsumer $consumer
* @param Message $message
* @param Closure $serializer
* @param array $schemas
* @param LoggerInterface|null $logger
*/
public function __construct(KafkaConsumer $consumer, Message $message, Closure $serializer, array $schemas, ?Logger $logger = null)
public function __construct(KafkaConsumer $consumer, Message $message, Closure $serializer, array $schemas, ?LoggerInterface $logger = null)
{
$this->consumer = $consumer;
$this->message = $message;
Expand Down

0 comments on commit c9a68e0

Please sign in to comment.