Permalink
Browse files

Add LoggerAwareInterface and require virtual package

  • Loading branch information...
1 parent 7a4b87a commit af29a61d7191c313b0db21f204a06446e62bf863 @Seldaek Seldaek committed Dec 9, 2012
Showing with 21 additions and 1 deletion.
  1. +1 −1 Psr/Log/{Level.php → LogLevel.php}
  2. +17 −0 Psr/Log/LoggerAwareInterface.php
  3. +3 −0 composer.json
@@ -5,7 +5,7 @@
/**
* Describes log levels
*/
-class Level
+class LogLevel
{
const EMERGENCY = 'emergency';
const ALERT = 'alert';
@@ -0,0 +1,17 @@
+<?php
+
+namespace Psr\Log;
+
+/**
+ * Describes a logger-aware instance
+ */
+interface LoggerAwareInterface
+{
+ /**
+ * Sets a logger instance on the object
+ *
+ * @param LoggerInterface $logger
+ * @return null
+ */
+ public function setLogger(LoggerInterface $logger);
+}
View
@@ -8,6 +8,9 @@
"homepage": "http://www.php-fig.org/"
}
],
+ "require": {
+ "psr/log-implementation": "1.0.0"
+ },
"autoload": {
"psr-0": {
"Psr\\Log\\": ""

0 comments on commit af29a61

Please sign in to comment.