diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 60bb218..aed5be2 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -17,8 +17,7 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('acseo_dynamic_form'); + $treeBuilder = new TreeBuilder('acseo_dynamic_form'); return $treeBuilder; } diff --git a/Form/Extension/FieldTypeHelpExtension.php b/Form/Extension/FieldTypeHelpExtension.php index 9d14488..110fadc 100644 --- a/Form/Extension/FieldTypeHelpExtension.php +++ b/Form/Extension/FieldTypeHelpExtension.php @@ -51,11 +51,8 @@ public function configureOptions(OptionsResolver $resolver) )); } - /** - * @return string - */ - public function getExtendedType() + public static function getExtendedTypes(): iterable { - return FormType::class; + return [FormType::class]; } } diff --git a/Form/Extension/FieldTypePictoExtension.php b/Form/Extension/FieldTypePictoExtension.php index 8495f02..ea47e68 100644 --- a/Form/Extension/FieldTypePictoExtension.php +++ b/Form/Extension/FieldTypePictoExtension.php @@ -51,11 +51,8 @@ public function configureOptions(OptionsResolver $resolver) )); } - /** - * @return string - */ - public function getExtendedType() + public static function getExtendedTypes(): iterable { - return FormType::class; + return [FormType::class]; } } diff --git a/Form/Extension/FieldTypePopinExtension.php b/Form/Extension/FieldTypePopinExtension.php index 3383647..e3ad4f8 100644 --- a/Form/Extension/FieldTypePopinExtension.php +++ b/Form/Extension/FieldTypePopinExtension.php @@ -52,11 +52,8 @@ public function configureOptions(OptionsResolver $resolver) )); } - /** - * @return string - */ - public function getExtendedType() + public static function getExtendedTypes(): iterable { - return FormType::class; + return [FormType::class]; } } diff --git a/composer.json b/composer.json index 096135a..081a5e1 100644 --- a/composer.json +++ b/composer.json @@ -1,24 +1,27 @@ { "name": "acseo/dynamic-form-bundle", "type": "symfony-bundle", - "description": "Symfony2 From generator from array description", + "description": "Symfony From generator from array description", "keywords": ["Symfony", "form", "generator"], "homepage": "https://github.com/acseo/DynamicFormBundle", "authors": [ { "name": "Hubert MARIN", "email": "Hubert.Marin@acseo-conseil.fr" + }, + { + "name": "Romain GUERRERO", + "email": "romain.guerrero@acseo-conseil.fr" } ], "require": { - "php": ">=5.3.2", - "symfony/config": "~3.1|^4.0|^5.0", - "symfony/dependency-injection": "~3.1|^4.0|^5.0", - "symfony/event-dispatcher": "~3.1|^4.0|^5.0", - "symfony/form": "~3.1|^4.0|^5.0", - "symfony/http-kernel": "~3.1|^4.0|^5.0", - "symfony/options-resolver": "~3.1|^4.0|^5.0", - "symfony/validator": "~3.1|^4.0|^5.0" + "symfony/config": "^5.0", + "symfony/dependency-injection": "^5.0", + "symfony/event-dispatcher": "^5.0", + "symfony/form": "^5.0", + "symfony/http-kernel": "^5.0", + "symfony/options-resolver": "^5.0", + "symfony/validator": "^5.0" }, "autoload": { "psr-0": { "ACSEO\\Bundle\\DynamicFormBundle": "" } @@ -27,7 +30,7 @@ "minimum-stability": "dev", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "4.0-dev" } } }