Symfony\Component\Form\FormBuilder::__construct PHP Method

__construct() public method

Creates a new form builder.
public __construct ( string $name, string $dataClass, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\Form\FormFactoryInterface $factory, array $options = [] )
$name string
$dataClass string
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$factory Symfony\Component\Form\FormFactoryInterface
$options array
    public function __construct($name, $dataClass, EventDispatcherInterface $dispatcher, FormFactoryInterface $factory, array $options = array())
    {
        parent::__construct($name, $dataClass, $dispatcher, $options);

        $this->factory = $factory;
    }