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