mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-12 02:09:32 +00:00
75e9d1df03
And fix some deps instead of using dev tags
31 lines
705 B
PHP
31 lines
705 B
PHP
<?php
|
|
|
|
namespace Wallabag\CoreBundle\Form\Type;
|
|
|
|
use Symfony\Component\Form\AbstractType;
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
|
|
|
class EntryType extends AbstractType
|
|
{
|
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|
{
|
|
$builder
|
|
->add('url', 'url', array('required' => true))
|
|
->add('save', 'submit')
|
|
;
|
|
}
|
|
|
|
public function configureOptions(OptionsResolver $resolver)
|
|
{
|
|
$resolver->setDefaults(array(
|
|
'data_class' => 'Wallabag\CoreBundle\Entity\Entry',
|
|
));
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return 'entry';
|
|
}
|
|
}
|