Skip to content

Commit

Permalink
Removed Traceable Twig Environment that has been deprecated by the Tw…
Browse files Browse the repository at this point in the history
…ig project
  • Loading branch information
rhukster committed Sep 14, 2015
1 parent 075c5f9 commit 66d5eab
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
11 changes: 0 additions & 11 deletions system/blueprints/config/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -620,17 +620,6 @@ form:
validate:
type: bool

debugger.twig:
type: toggle
label: PLUGIN_ADMIN.DEBUG_TWIG
help: PLUGIN_ADMIN.DEBUG_TWIG_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool

debugger.shutdown.close_connection:
type: toggle
label: PLUGIN_ADMIN.SHUTDOWN_CLOSE_CONNECTION
Expand Down
1 change: 0 additions & 1 deletion system/config/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ errors:

debugger:
enabled: false # Enable Grav debugger and following settings
twig: true # Enable debugging of Twig templates
shutdown:
close_connection: true # Close the connection before calling onShutdown(). false for debugging

Expand Down
16 changes: 0 additions & 16 deletions system/src/Grav/Common/Twig/TraceableTwigEnvironment.php

This file was deleted.

5 changes: 0 additions & 5 deletions system/src/Grav/Common/Twig/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ public function init()
}

$this->twig = new TwigEnvironment($loader_chain, $params);
if ($debugger->enabled() && $config->get('system.debugger.twig')) {
$this->twig = new TraceableTwigEnvironment($this->twig);
$collector = new \DebugBar\Bridge\Twig\TwigCollector($this->twig);
$debugger->addCollector($collector);
}

if ($config->get('system.twig.undefined_functions')) {
$this->twig->registerUndefinedFunctionCallback(function ($name) {
Expand Down

0 comments on commit 66d5eab

Please sign in to comment.