Move Twig to prefixed dependencies

Closes #1904
[MAILPOET-1929]
This commit is contained in:
Pavel Dohnal
2019-03-26 10:51:07 +01:00
committed by M. Shull
parent 51de087c01
commit 3d69b3aeec
17 changed files with 544 additions and 204 deletions

View File

@@ -3,15 +3,14 @@
namespace MailPoet\Config;
use MailPoet\Twig;
use Twig_Environment as TwigEnv;
use Twig_Lexer as TwigLexer;
use Twig_Loader_Filesystem as TwigFileSystem;
use MailPoetVendor\Twig_Environment as TwigEnv;
use MailPoetVendor\Twig_Lexer as TwigLexer;
use MailPoetVendor\Twig_Loader_Filesystem as TwigFileSystem;
use MailPoet\WP\Functions as WPFunctions;
if (!defined('ABSPATH')) exit;
class Renderer {
protected $cache_path;
protected $caching_enabled;
@@ -103,7 +102,7 @@ class Renderer {
function setupDebug() {
if ($this->debugging_enabled) {
$this->renderer->addExtension(new \Twig_Extension_Debug());
$this->renderer->addExtension(new \MailPoetVendor\Twig_Extension_Debug());
}
}