Skip to content

Commit c17d071

Browse files
committed
Implement getExtendedTypes
1 parent 37c0ca0 commit c17d071

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

src/Extension/Http/FormTypeHttpExtension.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Symfony\Component\Form\AbstractTypeExtension;
44
use Symfony\Component\Form\RequestHandlerInterface;
55
use Symfony\Component\Form\FormBuilderInterface;
6+
use Symfony\Component\Form\Extension\Core\Type\FormType;
67

78
class FormTypeHttpExtension extends AbstractTypeExtension
89
{
@@ -32,6 +33,14 @@ public function buildForm(FormBuilderInterface $builder, array $options)
3233
*/
3334
public function getExtendedType()
3435
{
35-
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
36+
return FormType::class;
37+
}
38+
39+
/**
40+
* {@inheritdoc}
41+
*/
42+
public static function getExtendedTypes(): iterable
43+
{
44+
return [FormType::class];
3645
}
3746
}

src/Extension/Session/CsrfTypeExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,12 @@ public function getExtendedType()
3737
{
3838
return FormType::class;
3939
}
40+
41+
/**
42+
* {@inheritdoc}
43+
*/
44+
public static function getExtendedTypes(): iterable
45+
{
46+
return [FormType::class];
47+
}
4048
}

src/Extension/Session/SessionTypeExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@ public function getExtendedType()
3333
{
3434
return FormType::class;
3535
}
36+
37+
/**
38+
* {@inheritdoc}
39+
*/
40+
public static function getExtendedTypes(): iterable
41+
{
42+
return [FormType::class];
43+
}
3644
}

src/Extension/Validation/ValidationTypeExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,12 @@ public function getExtendedType()
9999
{
100100
return FormType::class;
101101
}
102+
103+
/**
104+
* {@inheritdoc}
105+
*/
106+
public static function getExtendedTypes(): iterable
107+
{
108+
return [FormType::class];
109+
}
102110
}

0 commit comments

Comments
 (0)