From 1eb4ea39b34e2b11b5db0efde5be728594b28000 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Thu, 2 Jan 2014 19:25:43 +0100 Subject: [PATCH] Add inline comment about xp-framework/core#4 --- src/main/php/com/handlebarsjs/HandlebarsEngine.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/php/com/handlebarsjs/HandlebarsEngine.class.php b/src/main/php/com/handlebarsjs/HandlebarsEngine.class.php index cecba07..9fbb5c6 100644 --- a/src/main/php/com/handlebarsjs/HandlebarsEngine.class.php +++ b/src/main/php/com/handlebarsjs/HandlebarsEngine.class.php @@ -128,6 +128,9 @@ public function withLogger($logger) { return ''; }); } else if ($logger instanceof LogCategory) { + + // This can be optimized once we want to set the dependency on xp-framework/core + // to a 6.0.0 minimum, see https://github.com/xp-framework/core/pull/4 $this->setBuiltin('log', function($items, $context, $options) use($logger) { $level= array_shift($options); LogLevel::named($level);