Bolt\Controller\Base::createForm PHP Method

createForm() protected method

Creates and returns a Form instance from the type of the form.
protected createForm ( string | Symfony\Component\Form\FormTypeInterface $type = FormType::class, mixed $data = null, array $options = [] ) : Form
$type string | Symfony\Component\Form\FormTypeInterface The built type of the form
$data mixed The initial data for the form
$options array Options for the form
return Symfony\Component\Form\Form
    protected function createForm($type = FormType::class, $data = null, array $options = [])
    {
        return $this->app['form.factory']->create($type, $data, $options);
    }