src/KiselevMusic/AdminBundle/Form/Type/PosterFormType.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('date', 'date', array(
                'widget'    => 'single_text',
                'attr'      => array(
                    'class' => 'form-control dp'
                ),
                'constraints' => array(
                    new NotBlank()
                )
            ))
            ->add('description', 'textarea', array(
                'constraints' => array(
                    new NotBlank()
                )
            ))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'date' , 'date' , array ( 'widget' => 'single_text' , 'attr' => array ( 'class' => 'form-control dp' ) , 'constraints' => array ( new NotBlank ( ) ) ) ) -> add ( 'description' , 'textarea' , array ( 'constraints' => array ( new NotBlank ( ) ) ) ) ; }
@param FormBuilderInterface $builder
 @param array                $options
@param FormBuilderInterface $builder @param array $options