Skip to content

Commit

Permalink
TracyBridge: initializes Tracy v2.5 Nette brigde
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 17, 2018
1 parent 65fabd4 commit 268816e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Bridges/Framework/TracyBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public static function initialize()
$blueScreen->info[] = "Nette Framework $version";
}

if (class_exists(Tracy\Bridges\Nette\Bridge::class)) {
Tracy\Bridges\Nette\Bridge::initialize();
return;
}

$blueScreen->addPanel(function ($e) {
if ($e instanceof Latte\CompileException) {
return [
Expand Down

0 comments on commit 268816e

Please sign in to comment.