Permalink
Browse files

add pear/log to composer requirements and use it

  • Loading branch information...
1 parent 01710ef commit a2dda95c04c3e21c41fc35384c2c446f55c4cfc3 @kcivey kcivey committed Dec 9, 2013
Showing with 7 additions and 5 deletions.
  1. +5 −4 Beautifier.php
  2. +2 −1 composer.json
View
@@ -36,10 +36,11 @@
require_once 'Beautifier/Exception.php';
require_once 'Beautifier/StreamWrapper.php';
}
-/**
- * Require Log
- */
-require_once 'Log.php';
+
+if (!class_exists('Log')) {
+ require_once 'Log.php';
+}
+
/**
* PHP_Beautifier
*
View
@@ -15,7 +15,8 @@
"license": "PHP-3.0",
"require": {
"php": ">=5",
- "ext-tokenizer": "*"
+ "ext-tokenizer": "*",
+ "pear/log": "*"
},
"target-dir": "PHP",
"autoload": {

0 comments on commit a2dda95

Please sign in to comment.