Skip to content
Browse files

adds LoggerAwareTrait

  • Loading branch information...
1 parent 4543936 commit 3c7f4ba8b5919db561e1bd973e1f58f6226c09f0 @schmittjoh schmittjoh committed Dec 13, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 Psr/Log/LoggerAwareTrait.php
View
22 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;
+ }
+}

0 comments on commit 3c7f4ba

Please sign in to comment.
Something went wrong with that request. Please try again.