summaryrefslogtreecommitdiff
path: root/src/Configuration.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2017-12-10 17:26:34 +0000
committerAndres Rey <[email protected]>2017-12-10 17:26:34 +0000
commit1cbc9d5aaf9979bf6fd07f2a94ed6d922ead1e0b (patch)
tree4cc4218ebc4b2dd8d640514dd638d811f6e91a39 /src/Configuration.php
parentb1a4bcce76ca2daec43d2acdf0331d7a02aa8e10 (diff)
Switch to a logger aware trait in the Configuration object
Diffstat (limited to 'src/Configuration.php')
-rw-r--r--src/Configuration.php11
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()