File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
66use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
77use Symfony \Component \Config \Definition \ConfigurationInterface ;
8+ use Symfony \Component \HttpKernel \KernelInterface ;
89
910/**
1011 * This is the class that validates and merges configuration from your app/config files
1314 */
1415class Configuration implements ConfigurationInterface
1516{
17+ protected $ kernel ;
18+
19+ public function __construct (KernelInterface $ kernel )
20+ {
21+ $ this ->kernel = $ kernel ;
22+ }
23+
1624 /**
1725 * {@inheritDoc}
1826 */
@@ -37,6 +45,9 @@ public function getConfigTreeBuilder()
3745 ->booleanNode ('use_table_diffing ' )
3846 ->defaultTrue ()
3947 ->end ()
48+ ->scalerNode ('purifier_cache_location ' )
49+ ->defaultValue ($ this ->kernel ->getCacheDir ())
50+ ->end ()
4051 ->integerNode ('match_threshold ' )->end ()
4152 ->append ($ this ->getDoctrineCacheDriverNode ('doctrine_cache_driver ' ))
4253 ->end ();
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ parameters:
66services :
77 caxy.html_diff.config :
88 class : %caxy.html_diff.config.class%
9+ arguments : [@kernel]
910 factory : [%caxy.html_diff.config.class%, create]
1011 caxy.html_diff :
1112 class : %caxy.html_diff.class%
You can’t perform that action at this time.
0 commit comments