Symfony2 embedded forms using one class
===

Is it possible to use an Embedded form without using a separated class for it?
The reason is i've got a lot of form classes already, which most of the time contain a single field, so i wonder if it is possible to define embedded forms inline.

SO normally we have something like this:

    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('name')
            ->add('email')
            ->add('phone')
            ->add('key', new KeyType())            
        ;
    }

Documentation says that i have to create a class for the  `key` field, `KeyType` for example ,  where i would setup the form builder for the embedded form. But I would like instead of creating the class `KeyType`, to define the fields inline, in the same class. How can i do it?

