diff options
author | Andres Rey <[email protected]> | 2017-12-10 17:26:34 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-12-10 17:26:34 +0000 |
commit | 1cbc9d5aaf9979bf6fd07f2a94ed6d922ead1e0b (patch) | |
tree | 4cc4218ebc4b2dd8d640514dd638d811f6e91a39 /src/Configuration.php | |
parent | b1a4bcce76ca2daec43d2acdf0331d7a02aa8e10 (diff) |
Switch to a logger aware trait in the Configuration object
Diffstat (limited to 'src/Configuration.php')
-rw-r--r-- | src/Configuration.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Configuration.php b/src/Configuration.php index fcb22f9..a5ad2da 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -2,6 +2,7 @@ namespace andreskrey\Readability; +use Psr\Log\LoggerAwareTrait; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; @@ -10,6 +11,8 @@ use Psr\Log\NullLogger; */ class Configuration { + use LoggerAwareTrait; + /** * @var int */ @@ -73,14 +76,6 @@ class Configuration } /** - * @param LoggerInterface $logger - */ - public function setLogger($logger) - { - $this->logger = $logger; - } - - /** * @return int */ public function getMaxTopCandidates() |