From 9f595b70322ce1708dafb6cde055ebd74d45cd73 Mon Sep 17 00:00:00 2001 From: Trent Steel Date: Thu, 30 Oct 2014 15:56:31 +1000 Subject: [PATCH] use symfony cache directory - closes #84 --- DependencyInjection/TrsteelCkeditorExtension.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DependencyInjection/TrsteelCkeditorExtension.php b/DependencyInjection/TrsteelCkeditorExtension.php index 1b622ba5..9f973582 100755 --- a/DependencyInjection/TrsteelCkeditorExtension.php +++ b/DependencyInjection/TrsteelCkeditorExtension.php @@ -39,6 +39,10 @@ public function load(array $configs, ContainerBuilder $container) // Ensure no leading slash on base path $config['base_path'] = ltrim($config['base_path'], '/'); + $config['html_purifier']['config'] = array_merge(array( + 'Cache.SerializerPath' => '%kernel.cache_dir%', + ), $config['html_purifier']['config']); + $container->setParameter('trsteel_ckeditor.form.type.class', $config['class']); $container->setParameter('trsteel_ckeditor.html_purifier.config', $config['html_purifier']['config']); $container->setParameter('trsteel_ckeditor.ckeditor.transformers', $config['transformers']);