Skip to content

Commit 17fe29d

Browse files
committed
Use canBe{Enabled|Disabled} for enabling
1 parent f654c22 commit 17fe29d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public function getConfigTreeBuilder()
2222
->children()
2323
->arrayNode('phpcr')
2424
->addDefaultsIfNotSet()
25+
->canBeEnabled()
2526
->children()
26-
->booleanNode('enabled')->defaultFalse()->end()
2727
->scalarNode('basepath')->defaultValue('/cms')->end()
2828
->scalarNode('manager_name')->defaultNull()->end()
2929
->enumNode('use_sonata_admin')
@@ -46,8 +46,8 @@ public function getConfigTreeBuilder()
4646
->end()
4747
->arrayNode('publish_workflow')
4848
->addDefaultsIfNotSet()
49+
->canBeDisabled()
4950
->children()
50-
->booleanNode('enabled')->defaultTrue()->end()
5151
->scalarNode('checker_service')->defaultValue('cmf_core.publish_workflow.checker.default')->end()
5252
->scalarNode('view_non_published_role')->defaultValue('ROLE_CAN_VIEW_NON_PUBLISHED')->end()
5353
->booleanNode('request_listener')->defaultTrue()->end()

0 commit comments

Comments
 (0)