mirror of
https://github.com/getgrav/grav.git
synced 2026-07-10 18:12:17 +02:00
Removed Traceable Twig Environment that has been deprecated by the Twig project
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user