This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,11 @@ class CmfTreeBrowserExtension extends Extension
23
23
public function load (array $ configs , ContainerBuilder $ container )
24
24
{
25
25
$ config = $ this ->processConfiguration (new Configuration (), $ configs );
26
-
27
26
$ loader = new XmlFileLoader ($ container , new FileLocator (__DIR__ .'/../Resources/config ' ));
28
27
29
28
$ bundles = $ container ->getParameter ('kernel.bundles ' );
30
-
31
29
if (isset ($ bundles ['DoctrinePHPCRBundle ' ])
32
- && ! empty ( $ config ['persistence ' ]['phpcr ' ]['enabled ' ])
30
+ && $ config ['persistence ' ]['phpcr ' ]['enabled ' ]
33
31
) {
34
32
35
33
$ loader ->load ('tree-phpcr.xml ' );
Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ public function getConfigTreeBuilder()
27
27
$ treeBuilder ->root ('cmf_tree_browser ' )
28
28
->children ()
29
29
->arrayNode ('persistence ' )
30
+ ->addDefaultsIfNotSet ()
30
31
->children ()
31
32
->arrayNode ('phpcr ' )
33
+ ->addDefaultsIfNotSet ()
32
34
->children ()
33
- ->scalarNode ('enabled ' )->defaultValue ( true )->end ()
35
+ ->booleanNode ('enabled ' )->defaultFalse ( )->end ()
34
36
->scalarNode ('session_name ' )->defaultValue ('default ' )->end ()
35
37
->end ()
36
38
->end ()
You can’t perform that action at this time.
0 commit comments