From 0639d128cb0516584ab435c0a726dd205ded8ef9 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 20 Nov 2021 15:45:17 +0100 Subject: [PATCH] 4.3.0 (#7605) --- CHANGELOG.md | 12 ++++++++++++ .../Extension/Field/Type/FormTypeFieldExtension.php | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd8e3c7679..8e1bc8537a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [4.3.0](https://github.com/sonata-project/SonataAdminBundle/compare/4.2.2...4.3.0) - 2021-11-19 +### Added +- [[#7579](https://github.com/sonata-project/SonataAdminBundle/pull/7579)] Added `AbstractAdminExtension::preBatchAction()` and `AdminExtensionInterface::preBatchAction()` (as annotation for BC) to have an extension point on batch actions. ([@7ochem](https://github.com/7ochem)) +- [[#7579](https://github.com/sonata-project/SonataAdminBundle/pull/7579)] Added `AdminEventExtension::preBatchAction()` that dispatches a `sonata.admin.event.batch_action.pre_batch_action` event with a BatchActionEvent object containing the data ([@7ochem](https://github.com/7ochem)) +- [[#7579](https://github.com/sonata-project/SonataAdminBundle/pull/7579)] Added BatchActionEvent class as a transport for (newly introduced) batch action events ([@7ochem](https://github.com/7ochem)) +- [[#7604](https://github.com/sonata-project/SonataAdminBundle/pull/7604)] `ModelManagerThrowable` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7604](https://github.com/sonata-project/SonataAdminBundle/pull/7604)] `CRUDController::handleModelManagerThrowable()` ([@VincentLanglet](https://github.com/VincentLanglet)) + +### Deprecated +- [[#7580](https://github.com/sonata-project/SonataAdminBundle/pull/7580)] `FormTypeFieldExtension::getValueFromFieldDescription()` ([@VincentLanglet](https://github.com/VincentLanglet)) +- [[#7604](https://github.com/sonata-project/SonataAdminBundle/pull/7604)] `CRUDController::handleModelManagerException()` ([@VincentLanglet](https://github.com/VincentLanglet)) + ## [4.2.2](https://github.com/sonata-project/SonataAdminBundle/compare/4.2.1...4.2.2) - 2021-11-08 ### Fixed - [[#7599](https://github.com/sonata-project/SonataAdminBundle/pull/7599)] French translations ([@VincentLanglet](https://github.com/VincentLanglet)) diff --git a/src/Form/Extension/Field/Type/FormTypeFieldExtension.php b/src/Form/Extension/Field/Type/FormTypeFieldExtension.php index 59e29a5b98..bb713d98bd 100644 --- a/src/Form/Extension/Field/Type/FormTypeFieldExtension.php +++ b/src/Form/Extension/Field/Type/FormTypeFieldExtension.php @@ -187,7 +187,7 @@ public function configureOptions(OptionsResolver $resolver): void /** * NEXT_MAJOR: Remove this method. * - * @deprecated since sonata-project/admin-bundle version 4.x and will be removed in 5.0. + * @deprecated since sonata-project/admin-bundle version 4.3 and will be removed in 5.0. * * return the value related to FieldDescription, if the associated object does no * exists => a temporary one is created. @@ -197,7 +197,7 @@ public function configureOptions(OptionsResolver $resolver): void public function getValueFromFieldDescription(?object $object, FieldDescriptionInterface $fieldDescription) { @trigger_error(sprintf( - 'The method "%s()" is deprecated since sonata-project/admin-bundle 4.x and will be removed in 5.0.', + 'The method "%s()" is deprecated since sonata-project/admin-bundle 4.3 and will be removed in 5.0.', __METHOD__ ), \E_USER_DEPRECATED);