File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -929,3 +929,21 @@ method ``clearOptionsConfig()`` and call it periodically::
929
929
930
930
That's it! You now have all the tools and knowledge needed to process
931
931
options in your code.
932
+
933
+ Getting More Insights
934
+ ~~~~~~~~~~~~~~~~~~~~~
935
+
936
+ Use the ``OptionsResolverIntrospector `` to inspect the options definitions
937
+ inside an ``OptionsResolver `` instance::
938
+
939
+ use Symfony\Component\OptionsResolver\Debug\OptionsResolverIntrospector;
940
+ use Symfony\Component\OptionsResolver\OptionsResolver;
941
+
942
+ $resolver = new OptionsResolver();
943
+ $resolver->setDefaults([
944
+ 'host' => 'smtp.example.org',
945
+ 'port' => 25,
946
+ ]);
947
+
948
+ $introspector = new OptionsResolverIntrospector($resolver);
949
+ $introspector->getDefault('host'); // Retrieves "smtp.example.org"
You can’t perform that action at this time.
0 commit comments