File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -944,3 +944,24 @@ method ``clearOptionsConfig()`` and call it periodically::
944944
945945That's it! You now have all the tools and knowledge needed to process
946946options in your code.
947+
948+ Get More Insights
949+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
950+
951+ The `OptionsResolverIntrospector ` inspect options definitions inside an `OptionsResolver ` instance.
952+
953+ method::
954+
955+ use Symfony\Component\OptionsResolver\Debug\OptionsResolverIntrospector;
956+ use Symfony\Component\OptionsResolver\OptionsResolver;
957+
958+ $resolver = new OptionsResolver();
959+ $resolver->setDefaults([
960+ 'host' => 'smtp.example.org',
961+ 'port' => 25,
962+ ]);
963+
964+ $introspector = new OptionsResolverIntrospector($resolver);
965+ $introspector->getDefault('host'); // Retrieves "smtp.example.org"
966+
967+
You can’t perform that action at this time.
0 commit comments