Skip to content

Commit e3249ba

Browse files
authored
Merge pull request #20 from LinioIT/feat/support-symfony4
feat: add support to Symfony ^4.0 and ^5.0
2 parents dd165ea + 83c80f2 commit e3249ba

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"license": "BSD-3-Clause",
77
"require": {
88
"php": ">=7.1",
9-
"symfony/form": "^2.8|^3.0"
9+
"symfony/form": "^2.8 || ^3.0 || ^4.0 || ^5.0"
1010
},
1111
"require-dev": {
1212
"phpunit/phpunit": "^5.7",
13-
"symfony/validator": "^2.8|^3.0",
13+
"symfony/validator": "^2.8 || ^3.0 || ^4.0 || ^5.0",
1414
"friendsofphp/php-cs-fixer": "^2.0",
15-
"symfony/security": "^2.8|^3.0"
15+
"symfony/security": "^2.8 || ^3.0 || ^4.0 || ^5.0"
1616
},
1717
"autoload": {
1818
"psr-4": {

src/Form/Extension/HelpMessageTypeExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ public function buildView(FormView $view, FormInterface $form, array $options):
2929
{
3030
$view->vars['help'] = $options['help'] ?? '';
3131
}
32+
33+
public static function getExtendedTypes(): iterable
34+
{
35+
return [FormType::class];
36+
}
3237
}

0 commit comments

Comments
 (0)