Deprecated the web_profiler.position option

This commit is contained in:
Javier Eguiluz 2017-09-03 19:39:07 +02:00 committed by Fabien Potencier
parent b80d8c8917
commit 53387b4335
2 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,8 @@ CHANGELOG
`EventDispatcherDebugCommand`, `RouterDebugCommand`, `RouterMatchCommand`,
`TranslationDebugCommand`, `TranslationUpdateCommand`, `XliffLintCommand`
and `YamlLintCommand` classes have been marked as final
* Deprecated the `web_profiler.position` config option (in Symfony 4.0 the toolbar
will always be displayed at the bottom).
3.3.0
-----

View File

@ -39,6 +39,7 @@ class Configuration implements ConfigurationInterface
->booleanNode('toolbar')->defaultFalse()->end()
->scalarNode('position')
->defaultValue('bottom')
->setDeprecated('The "web_profiler.position" configuration key has been deprecated in Symfony 3.4 and it will be removed in 4.0.')
->validate()
->ifNotInArray(array('bottom', 'top'))
->thenInvalid('The CSS position %s is not supported')