if ($info =
$optionsResolver->
getInfo($option)) { $definition =
[ 'info' =>
$info,
];
} $definition +=
[ 'required' =>
$optionsResolver->
isRequired($option),
'deprecated' =>
$optionsResolver->
isDeprecated($option),
];
$introspector =
new OptionsResolverIntrospector($optionsResolver);
$map =
[ 'default' => 'getDefault',
'lazy' => 'getLazyClosures',
'allowedTypes' => 'getAllowedTypes',
'allowedValues' => 'getAllowedValues',
'normalizers' => 'getNormalizers',
'deprecation' => 'getDeprecation',
];
foreach ($map as $key =>
$method) {