how can I call a form (which is defined as a service) from the controller
//Here my code in the controller befor I define Form_NameType() as a service
$form = $this->createForm(new Form_NameType(), $obect_that_hydrate_my_form);
.
// SERVICE
blogbundle.Form_Nameform:
class: BlogBundle\Form\Form_NameType
arguments: [@security.context]
tags:
- {name: form.type, alias: FormAsAService }