merged branch vicb/framework/config (PR #4721)
Commits
-------
816539b
[FrameworkBundle] Display an error message when 'session.auto_start' is used (deprecated)
Discussion
----------
[FrameworkBundle] Display an error message when 'session.auto_start' is ...
...used (deprecated)
This commit is contained in:
commit
e9477820f2
@ -190,7 +190,16 @@ class Configuration implements ConfigurationInterface
|
|||||||
->info('session configuration')
|
->info('session configuration')
|
||||||
->canBeUnset()
|
->canBeUnset()
|
||||||
->children()
|
->children()
|
||||||
->booleanNode('auto_start')->info('DEPRECATED! Session starts on demand')->end()
|
->booleanNode('auto_start')
|
||||||
|
->info('DEPRECATED! Session starts on demand')
|
||||||
|
->defaultNull()
|
||||||
|
->beforeNormalization()
|
||||||
|
->ifTrue(function($v) { return null !== $v; })
|
||||||
|
->then(function($v) {
|
||||||
|
throw new \RuntimeException('The auto_start setting is deprecated. Just remove it from your configuration file.');
|
||||||
|
})
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
->scalarNode('storage_id')->defaultValue('session.storage.native')->end()
|
->scalarNode('storage_id')->defaultValue('session.storage.native')->end()
|
||||||
->scalarNode('handler_id')->defaultValue('session.handler.native_file')->end()
|
->scalarNode('handler_id')->defaultValue('session.handler.native_file')->end()
|
||||||
->scalarNode('name')->end()
|
->scalarNode('name')->end()
|
||||||
|
Reference in New Issue
Block a user