* @throws AccessException If accessing this method outside of
* {@link resolve()}
* @throws NoSuchOptionException If the option is not set
* @throws InvalidOptionsException If the option doesn't fulfill the
* specified validation rules
* @throws OptionDefinitionException If there is a cyclic dependency between
* lazy options and/or normalizers
public function offsetGet(mixed $option, bool $triggerDeprecation = true): mixed
Dans le composant OptionsResolver de Symfony, la méthode offsetGet() fait partie de l'interface ArrayAccess. Cette interface permet à un objet de se comporter comme un tableau.
offsetGet() vous permet de récupérer la valeur d'une option résolue en utilisant son nom comme clé, comme si vous accédiez à un élément dans un tableau.
Powered by Froala Editor