Property | Type | Description | |
---|---|---|---|
$params | array | Associative array of parameters to resolve against | |
$reflected | ReflectionClass | Reflection class for which you want to resolve extra options |
Method | Description | |
---|---|---|
__construct ( ReflectionClass $reflected, array $params = [] ) | Constructor | |
generateParamsHashKey ( $params ) : string | Generate a unique hash based on the keys of the extra params | |
getParams ( ) : array | Get the parameters we want to resolve against | |
getReflected ( ) : ReflectionClass | Returns the reflected object | |
resolve ( array $options, |
Resolve options against extra params requirements | |
setParams ( array $params = [] ) | Set the parameters we want to resolve against |
Method | Description | |
---|---|---|
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver, |
Configure options for the provided OptionResolver to match extra params requirements |
public __construct ( ReflectionClass $reflected, array $params = [] ) | ||
$reflected | ReflectionClass | Reflection class for which you want to resolve extra options |
$params | array | Associative array of extra parameters we want to resolve against |
protected configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver, |
||
$resolver | Symfony\Component\OptionsResolver\OptionsResolver | |
$classLoader | Optional class loader if you want to use custom handlers for some of the extra options |
public static generateParamsHashKey ( $params ) : string | ||
return | string | Unique MD5 hash |
public getReflected ( ) : ReflectionClass | ||
return | ReflectionClass |
protected array $params | ||
return | array |