Source of file BroadcastType.php
Size: 0,876 Bytes - Last Modified: 2014-10-15T13:20:58+03:00
/Users/mcfedr/dev/awspushbundle/src/Mcfedr/AwsPushBundle/Form/BroadcastType.php
123456789101112131415161718192021222324252627282930313233343536373839 | <?php namespace Mcfedr\AwsPushBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class BroadcastType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('platform') ->add('message', new MessageType()); } /** * @param OptionsResolverInterface $resolver */ public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver->setDefaults([ 'data_class' => 'Mcfedr\AwsPushBundle\Form\Model\Broadcast' ]); } /** * Returns the name of this type. * * @return string The name of this type */ public function getName() { return 'broadcast'; } } |