Form/Type/ContactInformationType.php
/**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add(
                'enterpriseName',
                null,
                array(
                    'required' => false,
                    'label' => 'contact_information.form.enterprise_name'
                )
            )
            ->add(
                'streetAddress',
                null,
                array(
                    'required' => false,
                    'label' => 'contact_information.form.street_address'
                )
            )
            ->add(
                'regionAddress',
                null,
                array(
                    'required' => false,
                    'label' => 'contact_information.form.region_address'
                )
            )
            ->add(
                'phone',
                null,
                array(
                    'required' => false,
                    'label' => 'contact_information.form.phone'
                )
            )
            ->add(
                'email',
                null,
                array(
                    'required' => false,
                    'label' => 'contact_information.form.email'
                )
            )
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'enterpriseName' , null , array ( 'required' => false , 'label' => 'contact_information.form.enterprise_name' ) ) -> add ( 'streetAddress' , null , array ( 'required' => false , 'label' => 'contact_information.form.street_address' ) ) -> add ( 'regionAddress' , null , array ( 'required' => false , 'label' => 'contact_information.form.region_address' ) ) -> add ( 'phone' , null , array ( 'required' => false , 'label' => 'contact_information.form.phone' ) ) -> add ( 'email' , null , array ( 'required' => false , 'label' => 'contact_information.form.email' ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options
//            ->add('altPhones') //            ->add('extras')