How can I access $options passed to buildForm() from an event listener in a clean way? Please see below code sample:
class UserType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->addEventListener(FormEvents::PRE_SET_DATA, [$this, 'preSetDataListener']);
}
public function preSetDataListener(FormEvent $event)
{
// how would I access $options from buildFrom here?
}