aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Acme/DemoBundle/Form
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
commit93fd4692f6eb753cae16358131c8049d84cfbb41 (patch)
tree1ef2f66eb378cf419d1aa033a2c772539e60537d /src/Acme/DemoBundle/Form
parent0440249631164a378981d014bf71b617c082bf5a (diff)
downloadwallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.gz
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.zst
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.zip
symfony is there
Diffstat (limited to 'src/Acme/DemoBundle/Form')
-rw-r--r--src/Acme/DemoBundle/Form/ContactType.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Acme/DemoBundle/Form/ContactType.php b/src/Acme/DemoBundle/Form/ContactType.php
new file mode 100644
index 00000000..2c76cdb2
--- /dev/null
+++ b/src/Acme/DemoBundle/Form/ContactType.php
@@ -0,0 +1,20 @@
1<?php
2
3namespace Acme\DemoBundle\Form;
4
5use Symfony\Component\Form\AbstractType;
6use Symfony\Component\Form\FormBuilderInterface;
7
8class ContactType extends AbstractType
9{
10 public function buildForm(FormBuilderInterface $builder, array $options)
11 {
12 $builder->add('email', 'email');
13 $builder->add('message', 'textarea');
14 }
15
16 public function getName()
17 {
18 return 'contact';
19 }
20}