[FrameworkBundle] Display an error message when 'session.auto_start' is used (deprecated)
This commit is contained in:
parent
11e8a33c7c
commit
816539b110
@ -190,7 +190,16 @@ class Configuration implements ConfigurationInterface
|
||||
->info('session configuration')
|
||||
->canBeUnset()
|
||||
->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('handler_id')->defaultValue('session.handler.native_file')->end()
|
||||
->scalarNode('name')->end()
|
||||
|
Reference in New Issue
Block a user