Closed keltanas closed 10 years ago
Hello @keltanas, thanks for reporting this issue. I'll look into it.
As a solution for the current version, decided to use a pass
class SmartyCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
if ($container->has('templating.engine.smarty')) {
$smartyDefinition = $container->getDefinition('templating.engine.smarty');
$smartyDefinition
->addMethodCall('addPluginsDir', array(
'%kernel.root_dir%/../vendor/smarty/smarty/distribution/libs/plugins'
))
->addMethodCall('addPluginsDir', array(
'%kernel.root_dir%/Resources/plugins'
))
;
}
}
}
@keltanas sorry for the delay. The bugfix is now available in master, check if it works for you without the custom compiler pass.
@noisebleed ok, thank you
If I need to install a plugin directory, then Smarty ceases to see the default directory. This is because the function setPluginsDir, through which there is a pass option
plugins_dir
erases the specified directory and sets new.
I think it would be good to give the ability to set an array
plugins_dir