Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit f262f61

Browse files
committed
default persistence.phpcr.enabled to false
1 parent 1a27c48 commit f262f61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

DependencyInjection/CmfMenuExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function load(array $configs, ContainerBuilder $container)
2727

2828
$this->loadVoters($config, $loader, $container);
2929

30-
if (!empty($config['persistence']['phpcr']['enabled'])) {
30+
if ($config['persistence']['phpcr']['enabled']) {
3131
$this->loadPhpcr($config['persistence']['phpcr'], $loader, $container);
3232
}
3333
}

DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ public function getConfigTreeBuilder()
1515
->fixXmlConfig('voter')
1616
->children()
1717
->arrayNode('persistence')
18+
->addDefaultsIfNotSet()
1819
->children()
1920
->arrayNode('phpcr')
21+
->addDefaultsIfNotSet()
2022
->children()
2123
->scalarNode('enabled')->defaultNull()->end()
2224
->scalarNode('menu_basepath')->defaultValue('/cms/menu')->end()

0 commit comments

Comments
 (0)