for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*************************************************************************************/
/* This file is part of the RewriteUrl module for Thelia. */
/* */
/* Copyright (c) OpenStudio */
/* email : [email protected] */
/* web : http://www.thelia.net */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
namespace RewriteUrl\Form;
use Symfony\Component\Validator\Constraints\NotBlank;
use Thelia\Form\BaseForm;
/**
* Class SetDefaultForm
* @package RewriteUrl\Form
* @author Vincent Lopes <[email protected]>
*/
class SetDefaultForm extends BaseForm
{
* @return string
public function getName()
return "rewriteurl_setdefault_form";
}
protected function buildForm()
$this->formBuilder
->add(
'rewrite-id',
'text',
array(
'constraints' => array(new NotBlank()),
'required' => true
)
);