Skip to content

Commit

Permalink
use LoggerAwareTrait from Psr/Log
Browse files Browse the repository at this point in the history
  • Loading branch information
matbcvo committed Jul 18, 2024
1 parent c1ae7f7 commit a448f0c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions lib/Api/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Mautic\Auth\AuthInterface;
use Mautic\QueryBuilder\QueryBuilder;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;

Expand All @@ -22,6 +23,8 @@
*/
class Api implements LoggerAwareInterface
{
use LoggerAwareTrait;

/**
* Used by unit testing to force use of BC endpoints.
*
Expand Down Expand Up @@ -90,11 +93,6 @@ class Api implements LoggerAwareInterface
*/
private $auth;

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

/**
* @param string $baseUrl
*/
Expand All @@ -119,14 +117,6 @@ public function getLogger()
return $this->logger;
}

/**
* Sets a logger.
*/
public function setLogger(LoggerInterface $logger): void
{
$this->logger = $logger;
}

/**
* Get the array of available search commands.
*
Expand Down

0 comments on commit a448f0c

Please sign in to comment.