From 5c0f6779aa2784fcbc68ff002a515a13dc496813 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 19 Jun 2013 12:15:07 +0200 Subject: [PATCH] remove unused code --- .../Compiler/RegisterSmartyPluginPass.php | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php b/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php index cc3608641..ccf1f8d9b 100644 --- a/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php +++ b/core/lib/Thelia/Core/DependencyInjection/Compiler/RegisterSmartyPluginPass.php @@ -35,30 +35,6 @@ class RegisterSmartyPluginPass implements CompilerPassInterface { $smarty->addMethodCall("addPlugins", array(new Reference($id))); - /*$register_plugin = $container->get($id); - - $reflectionObject = new \ReflectionObject($register_plugin); - $interface = "Thelia\Core\Template\Smarty\SmartyPluginInterface"; - if (!$reflectionObject->implementsInterface($interface)) { - throw new \RuntimeException(sprintf("%s class must implement %s interface",$reflectionObject->getName(), $interface)); - } - - $plugins = $register_plugin->registerPlugins(); - - if(!is_array($plugins)) { - $plugins = array($plugins); - } - - foreach($plugins as $plugin) { - $smarty->addMethodCall("registerPlugin", array( - $plugin->type, - $plugin->name, - array( - $plugin->class, - $plugin->method - ) - )); - }*/ } $smarty->addMethodCall("registerPlugins");