Skip to content

Commit

Permalink
[FrameworkBundle] Display an error message when 'session.auto_start' …
Browse files Browse the repository at this point in the history
…is used (deprecated)
  • Loading branch information
vicb committed Jul 3, 2012
1 parent 11e8a33 commit 816539b
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -190,7 +190,16 @@ private function addSessionSection(ArrayNodeDefinition $rootNode)
->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()
Expand Down

0 comments on commit 816539b

Please sign in to comment.