aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/psr/log/Psr/Log/LoggerAwareTrait.php')
-rw-r--r--vendor/psr/log/Psr/Log/LoggerAwareTrait.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/psr/log/Psr/Log/LoggerAwareTrait.php b/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
new file mode 100644
index 000000000..f087a3dac
--- /dev/null
+++ b/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * Basic Implementation of LoggerAwareInterface.
+ */
+trait LoggerAwareTrait
+{
+ /** @var LoggerInterface */
+ protected $logger;
+
+ /**
+ * Sets a logger.
+ *
+ * @param LoggerInterface $logger
+ */
+ public function setLogger(LoggerInterface $logger)
+ {
+ $this->logger = $logger;
+ }
+}