| 1 | <?php |
||
| 8 | class ProviderType extends AbstractResourceType |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
| 14 | { |
||
| 15 | $builder |
||
| 16 | ->add('name', 'text', array()) |
||
| 17 | ->add('description', 'text', array()) |
||
| 18 | ->add('price', 'dos_money', array()) |
||
| 19 | ->add('parameters', 'dos_yaml', array()) |
||
| 20 | ->add('actived', 'checkbox', array( |
||
| 21 | 'required' => false, |
||
| 22 | )) |
||
| 23 | ; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function getName() |
||
| 33 | } |
||
| 34 |