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 @@ -953,3 +953,21 @@ method ``clearOptionsConfig()`` and call it periodically::
953953
954954That's it! You now have all the tools and knowledge needed to process
955955options 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