shuba_ivan

ss

Nov 11th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Artel\AdminBundle\Form;
  4.  
  5. use Symfony\Component\Form\AbstractType;
  6. use Symfony\Component\Form\FormBuilderInterface;
  7. use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  8.  
  9. class CodeDirectorySpecialitiesType extends AbstractType
  10. {
  11. /**
  12. * @param FormBuilderInterface $builder
  13. * @param array $options
  14. */
  15. public function buildForm(FormBuilderInterface $builder, array $options)
  16. {
  17. $builder
  18. ->add('specialities')
  19. ->add('skills')
  20. ;
  21. }
  22.  
  23. /**
  24. * @param OptionsResolverInterface $resolver
  25. */
  26. public function setDefaultOptions(OptionsResolverInterface $resolver)
  27. {
  28. $resolver->setDefaults(array(
  29. 'data_class' => 'Artel\ProfileBundle\Entity\CodeDirectorySpecialities'
  30. ));
  31. }
  32.  
  33. /**
  34. * @return string
  35. */
  36. public function getName()
  37. {
  38. return 'artel_profilebundle_codedirectoryspecialities';
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment