Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 391760c + 95cea71 commit f5cc9fdCopy full SHA for f5cc9fd
components/options_resolver.rst
@@ -739,6 +739,13 @@ method::
739
somewhere, either its value is provided by the user or the option is evaluated
740
within closures of lazy options and normalizers.
741
742
+.. note::
743
+
744
+ When using an option deprecated by you in your own library, you can pass
745
+ ``false`` as the second argument of the
746
+ :method:`Symfony\\Component\\OptionsResolver\\Options::offsetGet()` method
747
+ to not trigger the deprecation warning.
748
749
Instead of passing the message, you may also pass a closure which returns
750
a string (the deprecation message) or an empty string to ignore the deprecation.
751
This closure is useful to only deprecate some of the allowed types or values of
0 commit comments