Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function createBuilder(FormFactoryInterface $factory, $name, array $options = array(), FormBuilderInterface $parent = null)
 {
     $options = $this->getOptionsResolver()->resolve($options);
     // Should be decoupled from the specific option at some point
     $dataClass = isset($options['data_class']) ? $options['data_class'] : null;
     $builder = new FormBuilder($name, $dataClass, new EventDispatcher(), $factory, $options);
     $builder->setType($this);
     $builder->setParent($parent);
     $this->buildForm($builder, $options);
     return $builder;
 }