From e068ba31f067ba1622cf89c4e105c366d1b53d1b Mon Sep 17 00:00:00 2001 From: Sullivan SENECHAL Date: Tue, 12 Dec 2017 17:57:30 +0100 Subject: [PATCH] 3.9.0 --- CHANGELOG.md | 13 +++++++++++++ UPGRADE-3.x.md | 3 +++ src/Menu/MenuBuilderInterface.php | 2 +- src/Menu/MenuRegistry.php | 2 +- src/Resources/stubs/symfony2.php | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab5d28ed..f867671b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.9.0](https://github.com/sonata-project/SonataBlockBundle/compare/3.8.0...3.9.0) - 2017-12-12 +### Added +- Added missing validation translations +- Added missing translation to blocks + +### Changed +- Changed `MenuRegistry::add` method signature to allow string values instead of `MenuBuilderInterface` +- Removed usage of old form type aliases + +### Deprecated +- deprecated `sonata.block.menu` tag in favor of the existing `knp_menu.menu` tag +- deprecated `MenuBuilderInterface` class + ## [3.8.0](https://github.com/sonata-project/SonataBlockBundle/compare/3.7.0...3.8.0) - 2017-11-30 ### Added - added Russian translations diff --git a/UPGRADE-3.x.md b/UPGRADE-3.x.md index aae46dad..f47cb6fb 100644 --- a/UPGRADE-3.x.md +++ b/UPGRADE-3.x.md @@ -1,6 +1,9 @@ UPGRADE 3.x =========== +UPGRADE FROM 3.8 to 3.9 +======================= + ## Rewrote menu blocks Defining menu blocks by using a `` tag was removed, because it never worked properly. diff --git a/src/Menu/MenuBuilderInterface.php b/src/Menu/MenuBuilderInterface.php index 999d10b4..90a6ddf3 100644 --- a/src/Menu/MenuBuilderInterface.php +++ b/src/Menu/MenuBuilderInterface.php @@ -17,7 +17,7 @@ /** * @author Christian Gripp * - * @deprecated since 3.x, to be removed with 4.0. + * @deprecated since 3.9, to be removed with 4.0. */ interface MenuBuilderInterface { diff --git a/src/Menu/MenuRegistry.php b/src/Menu/MenuRegistry.php index 8588f69a..8184f3eb 100644 --- a/src/Menu/MenuRegistry.php +++ b/src/Menu/MenuRegistry.php @@ -47,7 +47,7 @@ public function add($menu) { if ($menu instanceof MenuBuilderInterface) { @trigger_error( - 'Adding a '.MenuBuilderInterface::class.' is deprecated since 3.x and will be removed in 4.0.', + 'Adding a '.MenuBuilderInterface::class.' is deprecated since 3.9 and will be removed in 4.0.', E_USER_DEPRECATED ); diff --git a/src/Resources/stubs/symfony2.php b/src/Resources/stubs/symfony2.php index e04819da..48c32d22 100644 --- a/src/Resources/stubs/symfony2.php +++ b/src/Resources/stubs/symfony2.php @@ -13,7 +13,7 @@ if (!interface_exists('Symfony\Component\OptionsResolver\OptionsResolverInterface')) { /** - * @deprecated since 3.x, to be removed in 4.0. Use \Symfony\Component\OptionsResolver\OptionsResolver instead. + * @deprecated since 3.9, to be removed in 4.0. Use \Symfony\Component\OptionsResolver\OptionsResolver instead. */ interface OptionsResolverInterface {