From 84e9b6c2c5994f336be3da1a83ac4d9fc33e9238 Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Sun, 27 Aug 2017 15:58:27 +0200 Subject: [PATCH] Removed SmartySecurityCompilerPass due var_dump is whitelisted since 5.3.0 release --- .../SmartySecurityCompilerPass.php | 29 ------------------- ShyimProfiler.php | 1 - 2 files changed, 30 deletions(-) delete mode 100644 Components/CompilerPass/SmartySecurityCompilerPass.php diff --git a/Components/CompilerPass/SmartySecurityCompilerPass.php b/Components/CompilerPass/SmartySecurityCompilerPass.php deleted file mode 100644 index ab9edb7..0000000 --- a/Components/CompilerPass/SmartySecurityCompilerPass.php +++ /dev/null @@ -1,29 +0,0 @@ -hasParameter('shopware.template_security')) { - $security = $container->getParameter('shopware.template_security'); - - $security['php_modifiers'][] = 'var_dump'; - - $container->setParameter('shopware.template_security', $security); - } - } -} diff --git a/ShyimProfiler.php b/ShyimProfiler.php index dde7c31..4e73c32 100644 --- a/ShyimProfiler.php +++ b/ShyimProfiler.php @@ -74,7 +74,6 @@ public function build(ContainerBuilder $container) $container->addCompilerPass(new ProfilerCollectorCompilerPass()); $container->addCompilerPass(new AddTemplatePluginDirCompilerPass()); $container->addCompilerPass(new CustomCacheCompilerPass()); - $container->addCompilerPass(new SmartySecurityCompilerPass()); } /**