X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/ba6ed1d2d45b58011d275ef5960fdb012b9d0b94..2170a08e8b827db071883ad0b539a3ff97d6cd97:/Form/AuthorType.php diff --git a/Form/AuthorType.php b/Form/AuthorType.php new file mode 100644 index 0000000..9a908a4 --- /dev/null +++ b/Form/AuthorType.php @@ -0,0 +1,36 @@ +add('name')->add('slug')->add('created')->add('updated'); + } + + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults(array( + 'data_class' => 'Rapsys\BlogBundle\Entity\Author' + )); + } + + /** + * {@inheritdoc} + */ + public function getBlockPrefix() + { + return 'rapsys_blogbundle_author'; + } +}