add changes
This commit is contained in:
parent
7fb0614db4
commit
82575d2da0
2 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ use Doctrine\ORM\QueryBuilder;
|
|||
use Override;
|
||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Validator\Constraints\Length;
|
||||
|
@ -23,7 +24,7 @@ final class MenuItemType extends AbstractType
|
|||
$item = $options['data'];
|
||||
assert($item instanceof MenuItem);
|
||||
|
||||
$builder->add('name', \Symfony\Component\Form\Extension\Core\Type\TextType::class, [
|
||||
$builder->add('name', TextType::class, [
|
||||
'constraints' => [
|
||||
new NotBlank,
|
||||
new Length([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue