8000
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 4f7b946 + cdb63c0 commit d5433caCopy full SHA for d5433ca
components/options_resolver.rst
@@ -953,3 +953,21 @@ method ``clearOptionsConfig()`` and call it periodically::
953
954
That's it! You now have all the tools and knowledge needed to process
955
options in your code.
956
+
957
+Getting More Insights
958
+~~~~~~~~~~~~~~~~~~~~~
959
960
+Use the ``OptionsResolverIntrospector`` to inspect the options definitions
961
+inside an ``OptionsResolver`` instance::
962
963
+ use Symfony\Component\OptionsResolver\Debug\OptionsResolverIntrospector;
964
+ use Symfony\Component\OptionsResolver\OptionsResolver;
965
966
+ $resolver = new OptionsResolver();
967
+ $resolver->setDefaults([
968
+ 'host' => 'smtp.example.org',
969
+ 'port' => 25,
970
+ ]);
971
972
+ $introspector = new OptionsResolverIntrospector($resolver);
973
+ $introspector->getDefault('host'); // Retrieves "smtp.example.org"