From 13abfe16cb52d7a17c35703cd1f6850d8959e75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sun, 24 Nov 2019 14:50:51 +0100 Subject: [PATCH] 4.x-dev --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ UPGRADE-4.x.md | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 UPGRADE-4.x.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 00d6207e..3b85a3d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,46 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [4.0.0](https://github.com/sonata-project/SonataBlockBundle/compare/3.18.2...4.0.0) - 2019-11-24 +### Added +- Added support for Symfony 5 +- Add support for twig 3 +- Add `BlockLoaderInterface::exists` method to interface +- Add `BlockContextManagerInterface::exists` method to interface + +### Changed +- Replaced deprecated FilterResponseEvent +- Make command fully lazy +- Make all services public by default +- Use symfony event dispatcher contracts +- Use Twig directly in Blocks and Exception renderers +- `AbstractBlockService::getTemplating` method renamed to `getTwig` +- The block name is automatically set via `TweakCompilerPass` + +### Fixed +- Fix some PhpStorm findings +- Fix some phpstan findings +- Fix twig import of macros +- Load menu block only when KnpMenuBundle exist +- Remove undefined method call + +### Removed +- Remove service class parameters +- Remove PageBundle specific code +- Remove addClassesToCompile +- Removed block id autowiring +- Removed ConvertFromFqcn component +- Dropped support for old symfony (=< 4.3) versions +- Dropped support for twig 1.x +- Dropped support for PHP 7.2 and lower +- Removed `symfony/event-dispatcher` dependency +- Removed default null values for arguments of `AbstractBlockService` class +- Removed dependency on `symfony/templating` in `composer.json` +- Removed all temporary classes for templating +- Removed `FakeTemplating` class +- internal test classes are now excluded from the autoloader +- Removed `AbstractBlockServiceTest::$container` + ## [3.18.2](https://github.com/sonata-project/SonataBlockBundle/compare/3.18.1...3.18.2) - 2019-11-24 ### Fixed - Make cache optional again diff --git a/UPGRADE-4.x.md b/UPGRADE-4.x.md new file mode 100644 index 00000000..2dd27752 --- /dev/null +++ b/UPGRADE-4.x.md @@ -0,0 +1,2 @@ +UPGRADE 4.x +===========