Created
October 17, 2012 02:38
-
-
Save khepin/3903414 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\MessageBundle\FormType; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
use Symfony\Component\Security\Core\SecurityContext; | |
use Doctrine\ODM\MongoDB\DocumentRepository; | |
class FriendMessageWithAttachmentFormType extends AbstractType | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
$builder | |
->add('message', 'acme_friend_message') | |
->add('attachment', 'file') | |
; | |
} | |
public function getName() | |
{ | |
return 'acme_friend_message_with_attachment'; | |
} | |
public function setDefaultOptions(OptionsResolverInterface $resolver) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment