forked from deblan/gist
29 lines
553 B
PHP
29 lines
553 B
PHP
|
<?php
|
||
|
|
||
|
namespace Gist\Form;
|
||
|
|
||
|
use Symfony\Component\Validator\Constraints\NotBlank;
|
||
|
|
||
|
/**
|
||
|
* Class DeleteGistForm
|
||
|
* @author Simon Vieille <simon@deblan.fr>
|
||
|
*/
|
||
|
class DeleteGistForm extends AbstractForm
|
||
|
{
|
||
|
public function build(array $options = array())
|
||
|
{
|
||
|
$this->builder->add(
|
||
|
'id',
|
||
|
'hidden',
|
||
|
array(
|
||
|
'required' => true,
|
||
|
'constraints' => array(
|
||
|
new NotBlank(),
|
||
|
),
|
||
|
)
|
||
|
);
|
||
|
|
||
|
return $this->builder;
|
||
|
}
|
||
|
}
|