We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c6772 commit d6a8624Copy full SHA for d6a8624
components/config/definition.rst
@@ -424,6 +424,26 @@ has a certain value:
424
->end()
425
;
426
427
+Deprecated the Option
428
+---------------------
429
+
430
+You can depreciate an option by using the
431
+:method:`Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::setDeprecated`
432
+method.
433
434
+.. code-block:: php
435
436
+ $rootNode
437
+ ->children()
438
+ ->integerNode('old_option')
439
+ ->setDeprecated()
440
+ ->end()
441
442
+ ;
443
444
+If you use the Web Debug Toolbar, the deprecation notice will be showed when the
445
+configuration is rebuilt.
446
447
Documenting the Option
448
----------------------
449
0 commit comments