Skip to content

Commit

Permalink
Add inline comment about xp-framework/core#4
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 2, 2014
1 parent 0146e0a commit 1eb4ea3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/php/com/handlebarsjs/HandlebarsEngine.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1eb4ea3

Please sign in to comment.