From db27b7eed41b779c2c53f1a15bc60de3b54a3291 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Fri, 1 Oct 2021 14:03:52 +0200 Subject: [PATCH 1/2] Deprecate BuilderInterface --- src/Builder/BuilderInterface.php | 4 ++++ src/Builder/FormContractorInterface.php | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/Builder/BuilderInterface.php b/src/Builder/BuilderInterface.php index 573931269a..8a9b5214a1 100644 --- a/src/Builder/BuilderInterface.php +++ b/src/Builder/BuilderInterface.php @@ -17,6 +17,10 @@ /** * @author Thomas Rabaix + * + * NEXT_MAJOR: Remove this interface + * + * @deprecated since sonata-project/admin-bundle version 4.x and will be removed in 5.0. */ interface BuilderInterface { diff --git a/src/Builder/FormContractorInterface.php b/src/Builder/FormContractorInterface.php index 019effc331..0b178eb246 100644 --- a/src/Builder/FormContractorInterface.php +++ b/src/Builder/FormContractorInterface.php @@ -23,6 +23,13 @@ */ interface FormContractorInterface extends BuilderInterface { + /** + * Adds missing information to the given field description and the given admin. + * + * @param FieldDescriptionInterface $fieldDescription will be modified + */ + public function fixFieldDescription(FieldDescriptionInterface $fieldDescription): void; + /** * @param array $formOptions */ From 99a183651d40a000d4d11ed65cae1c5f6221249a Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 5 Oct 2021 20:44:39 +0200 Subject: [PATCH 2/2] Update FormContractorInterface.php --- src/Builder/FormContractorInterface.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Builder/FormContractorInterface.php b/src/Builder/FormContractorInterface.php index 0b178eb246..c84c52eddf 100644 --- a/src/Builder/FormContractorInterface.php +++ b/src/Builder/FormContractorInterface.php @@ -25,8 +25,6 @@ interface FormContractorInterface extends BuilderInterface { /** * Adds missing information to the given field description and the given admin. - * - * @param FieldDescriptionInterface $fieldDescription will be modified */ public function fixFieldDescription(FieldDescriptionInterface $fieldDescription): void;