Skip to content

Commit

Permalink
[FrameworkBundle] added configuration info
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Feb 2, 2012
1 parent 58939f1 commit 9757958
Showing 1 changed file with 11 additions and 10 deletions.
Expand Up @@ -46,7 +46,7 @@ public function getConfigTreeBuilder()

$rootNode
->children()
->scalarNode('charset')->end()
->scalarNode('charset')->setInfo('general configuration')->end()
->scalarNode('trust_proxy_headers')->defaultFalse()->end()
->scalarNode('secret')->isRequired()->end()
->scalarNode('ide')->defaultNull()->end()
Expand All @@ -72,7 +72,7 @@ private function addFormSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('form')
->arrayNode('form')->setInfo('form configuration')
->canBeUnset()
->treatNullLike(array('enabled' => true))
->treatTrueLike(array('enabled' => true))
Expand All @@ -97,7 +97,7 @@ private function addEsiSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('esi')
->arrayNode('esi')->setInfo('esi configuration')
->canBeUnset()
->treatNullLike(array('enabled' => true))
->treatTrueLike(array('enabled' => true))
Expand All @@ -113,7 +113,7 @@ private function addProfilerSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('profiler')
->arrayNode('profiler')->setInfo('profiler configuration')
->canBeUnset()
->children()
->booleanNode('only_exceptions')->defaultFalse()->end()
Expand Down Expand Up @@ -141,7 +141,7 @@ private function addRouterSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('router')
->arrayNode('router')->setInfo('router configuration')
->canBeUnset()
->children()
->scalarNode('resource')->isRequired()->end()
Expand All @@ -158,7 +158,7 @@ private function addSessionSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('session')
->arrayNode('session')->setInfo('session configuration')
->canBeUnset()
->children()
->booleanNode('auto_start')->defaultFalse()->end()
Expand Down Expand Up @@ -200,7 +200,7 @@ private function addTemplatingSection(ArrayNodeDefinition $rootNode)

$rootNode
->children()
->arrayNode('templating')
->arrayNode('templating')->setInfo('templating configuration')
->canBeUnset()
->children()
->scalarNode('assets_version')->defaultValue(null)->end()
Expand Down Expand Up @@ -251,6 +251,7 @@ private function addTemplatingSection(ArrayNodeDefinition $rootNode)
->fixXmlConfig('engine')
->children()
->arrayNode('engines')
->setExample(array('twig'))
->isRequired()
->requiresAtLeastOneElement()
->beforeNormalization()
Expand Down Expand Up @@ -313,7 +314,7 @@ private function addTranslatorSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('translator')
->arrayNode('translator')->setInfo('translator configuration')
->canBeUnset()
->treatNullLike(array('enabled' => true))
->treatTrueLike(array('enabled' => true))
Expand All @@ -330,7 +331,7 @@ private function addValidationSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('validation')
->arrayNode('validation')->setInfo('validation configuration')
->canBeUnset()
->treatNullLike(array('enabled' => true))
->treatTrueLike(array('enabled' => true))
Expand All @@ -348,7 +349,7 @@ private function addAnnotationsSection(ArrayNodeDefinition $rootNode)
{
$rootNode
->children()
->arrayNode('annotations')
->arrayNode('annotations')->setInfo('annotation configuration')
->addDefaultsIfNotSet()
->children()
->scalarNode('cache')->defaultValue('file')->end()
Expand Down

0 comments on commit 9757958

Please sign in to comment.