Example #1
0
 /**
  * Constructor.
  *
  * @param string                   $name
  * @param FormFactoryInterface     $factory
  * @param EventDispatcherInterface $dispatcher
  * @param string                   $dataClass
  */
 public function __construct($name, FormFactoryInterface $factory, EventDispatcherInterface $dispatcher, $dataClass = null)
 {
     $name = (string) $name;
     Form::validateName($name);
     $this->name = $name;
     $this->factory = $factory;
     $this->dispatcher = $dispatcher;
     $this->dataClass = $dataClass;
 }