mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #644 from Soullivaneuh/config-improve
Improve true/false/null default values on configuration
This commit is contained in:
commit
6be99b53ca
@ -27,7 +27,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->prototype('scalar')
|
->prototype('scalar')
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->booleanNode('default_sections_opened')->defaultValue(true)->end()
|
->booleanNode('default_sections_opened')->defaultTrue()->end()
|
||||||
->arrayNode('motd')
|
->arrayNode('motd')
|
||||||
->addDefaultsIfNotSet()
|
->addDefaultsIfNotSet()
|
||||||
->children()
|
->children()
|
||||||
@ -132,7 +132,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
})
|
})
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->booleanNode('entity_to_choice')->defaultValue(true)->end()
|
->booleanNode('entity_to_choice')->defaultTrue()->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->arrayNode('swagger')
|
->arrayNode('swagger')
|
||||||
@ -147,10 +147,10 @@ class Configuration implements ConfigurationInterface
|
|||||||
->children()
|
->children()
|
||||||
->scalarNode('title')->defaultValue('Symfony2')->end()
|
->scalarNode('title')->defaultValue('Symfony2')->end()
|
||||||
->scalarNode('description')->defaultValue('My awesome Symfony2 app!')->end()
|
->scalarNode('description')->defaultValue('My awesome Symfony2 app!')->end()
|
||||||
->scalarNode('TermsOfServiceUrl')->defaultValue(null)->end()
|
->scalarNode('TermsOfServiceUrl')->defaultNull()->end()
|
||||||
->scalarNode('contact')->defaultValue(null)->end()
|
->scalarNode('contact')->defaultNull()->end()
|
||||||
->scalarNode('license')->defaultValue(null)->end()
|
->scalarNode('license')->defaultNull()->end()
|
||||||
->scalarNode('licenseUrl')->defaultValue(null)->end()
|
->scalarNode('licenseUrl')->defaultNull()->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
@ -158,7 +158,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->arrayNode('cache')
|
->arrayNode('cache')
|
||||||
->addDefaultsIfNotSet()
|
->addDefaultsIfNotSet()
|
||||||
->children()
|
->children()
|
||||||
->booleanNode('enabled')->defaultValue(false)->end()
|
->booleanNode('enabled')->defaultFalse()->end()
|
||||||
->scalarNode('file')->defaultValue('%kernel.cache_dir%/api-doc.cache')->end()
|
->scalarNode('file')->defaultValue('%kernel.cache_dir%/api-doc.cache')->end()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user