File tree 1 file changed +18
-0
lines changed 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -953,3 +953,21 @@ method ``clearOptionsConfig()`` and call it periodically::
953
953
954
954
That's it! You now have all the tools and knowledge needed to process
955
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"
You can’t perform that action at this time.
0 commit comments