Removed Traceable Twig Environment that has been deprecated by the Twig project

This commit is contained in:
Andy Miller
2015-09-13 21:19:02 -06:00
parent 075c5f90cc
commit 66d5eab041
4 changed files with 0 additions and 33 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -1,16 +0,0 @@
<?php
namespace Grav\Common\Twig;
use Grav\Common\GravTrait;
/**
* The Twig Environment class is a wrapper that handles configurable permissions
* for the Twig cache files
*
* @author RocketTheme
* @license MIT
*/
class TraceableTwigEnvironment extends \DebugBar\Bridge\Twig\TraceableTwigEnvironment
{
use WriteCacheFileTrait;
}

View File

@@ -105,11 +105,6 @@ class Twig
}
$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) {