Skip to content

Commit

Permalink
Use Psr\Log\LoggerInterface instead of Monolog\Logger class
Browse files Browse the repository at this point in the history
  • Loading branch information
Valdeci Jr committed Jun 8, 2018
1 parent ea0cdf0 commit 328f891
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/SambaVideos/AbstractResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace SambaVideos;

use Monolog\Logger;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use SambaVideos\Exception\RequestException;
use Unirest\Exception;
Expand All @@ -40,7 +40,7 @@ abstract class AbstractResource
/** @var Response */
protected $response;

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

/** @var int */
Expand Down Expand Up @@ -251,7 +251,7 @@ protected function createRequestException($message, $code = null, $previous = nu
}

/**
* @return Logger
* @return LoggerInterface
*/
public function getLogger()
{
Expand All @@ -263,31 +263,31 @@ public function getLogger()
}

/**
* @param Logger $logger
* @param LoggerInterface $logger
*
* @return AbstractResource
*/
public function setLogger($logger)
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;

return $this;
}

/**
* @return int
* @return mixed
*/
public function getLoggerLevel()
{
if (empty($this->logger_level)) {
$this->logger_level = Logger::ERROR;
$this->logger_level = 'error';
}

return $this->logger_level;
}

/**
* @param int $logger_level
* @param mixed $logger_level
*
* @return AbstractResource
*/
Expand Down

0 comments on commit 328f891

Please sign in to comment.