3 namespace Rapsys\BlogBundle\Form
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\FormBuilderInterface
;
7 use Symfony\Component\OptionsResolver\OptionsResolver
;
9 class ArticleType
extends AbstractType
14 public function buildForm(FormBuilderInterface
$builder, array $options)
16 $builder->add('created')->add('updated')->add('site')->add('author')->add('keywords');
22 public function configureOptions(OptionsResolver
$resolver)
24 $resolver->setDefaults(array(
25 'data_class' => 'Rapsys\BlogBundle\Entity\Article'
32 public function getBlockPrefix()
34 return 'rapsys_blogbundle_article';