Skip to content

Latest commit

 

History

History
603 lines (464 loc) · 32.9 KB

CHANGELOG.md

File metadata and controls

603 lines (464 loc) · 32.9 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

5.1.0 - 2023-11-23

Added

5.0.1 - 2023-07-22

Fixed

  • [#1187] Italian translation keys from sonata.block.* to sonata.block.service.* (@gremo)
  • [#1188] Translation keys for nl and ru (@gremo)

5.0.0 - 2023-07-20

  • No significant changes

5.0.0-alpha-1 - 2023-06-03

Added

Changed

  • [#1054] Block services tagged with sonata.block are not made public anymore (@dmaicher)

Removed

4.21.0 - 2023-05-13

Added

4.20.0 - 2023-03-10

Added

  • [#1129] Src/Resources/translations/SonataBlockBundle.ar.xliff (@nalabdou)

Fixed

Removed

  • [#1140] Support for PHP 7.4
  • [#1140] Support for Symfony 6.0 and 6.1

4.19.0 - 2022-10-25

Added

Changed

  • [#1124] Changed Menu name settings required field from false to true in getFormSettingsKeys (@eerison)

Fixed

4.18.0 - 2022-09-28

Added

Changed

  • [#1115] BlockServiceManager::load throw a BlockServiceNotFoundException when the block is not found. (@JeromeEngelnAdeliom)

Deprecated

4.17.0 - 2022-08-27

Added

4.16.2 - 2022-08-12

Removed

  • [#1098] Remove editable field from ContainerBlockService, it was added twice. (@jordisala1991)

4.16.1 - 2022-08-05

Changed

Fixed

4.16.0 - 2022-07-20

Added

Changed

Deprecated

4.15.0 - 2022-07-18

Added

4.14.0 - 2022-06-23

Fixed

Removed

4.13.0 - 2022-05-24

Added

Changed

  • [#1051] Block services are now accessed via service locator within BlockServiceManager (@dmaicher)

Deprecated

  • [#1068] FormMapper::create() method. (@VincentLanglet)
  • [#1051] Deprecated not passing container types as second argument to BlockServiceManager::__construct (@dmaicher)

Removed

  • [#1055] Remove dependency on sonata-project/twig-extensions since it wasn't used. (@jordisala1991)

4.12.0 - 2022-04-27

Changed

Deprecated

  • [#1045] Deprecated method AbstractBlockService::renderPrivateResponse() (@dmaicher)
  • [#1045] Deprecated option cache_policy on MenuBlockService (@dmaicher)
  • [#1042] Deprecated passing an instance of BlockServiceManagerInterface as first argument for BlockHelper::__construct (@dmaicher)
  • [#1042] Deprecated BaseBlock::$ttl (@dmaicher)
  • [#1039] Deprecated passing array $cacheBlocks as 3rd argument for BlockContextManager::__construct (@dmaicher)
  • [#1039] Deprecated BlockContextManagerInterface::CACHE_KEY (@dmaicher)

4.11.0 - 2022-03-07

Deprecated

  • [#1011] Integration with SonataCacheBundle has been deprecated (@dmaicher)
  • [#1011] Interface Sonata\BlockBundle\Cache\HttpCacheHandlerInterface and it's implementations have been deprecated (@dmaicher)
  • [#1011] Constructor Signature of Sonata\BlockBundle\Templating\Helper\BlockHelper changed: all caching related arguments should be removed (@dmaicher)
  • [#1011] All caching configuration options have been deprecated and sonata_block.http_cache should be set to false (@dmaicher)

Fixed

  • [#1026] Do not trigger a deprecation if a template setting is not provided in a block context __construct. (@VincentLanglet)

4.10.0 - 2022-02-28

Deprecated

4.9.1 - 2022-01-01

Fixed

4.9.0 - 2021-12-04

Added

4.8.0 - 2021-11-01

Added

Changed

  • [#971] sonata-project/doctrine-extensions is an optional dependency now (@core23)

Deprecated

  • [#958] Sonata\BlockBundle\Model\BlockManagerInterface (@core23)

Fixed

4.7.0 - 2021-08-06

Changed

  • [#899] Sonata\BlockBundle\Form\Mapper\FormMapper methods signature to be compatible with Sonata\AdminBundle\Form\Mapper\FormMapper (@VincentLanglet)

4.6.0 - 2021-05-26

Added

  • [#882] Allow installation with psr/cache versions 2 and 3. (@dbu)

Fixed

  • [#878] Flipped sonata.block.form.type.container_template service array argument in the extension (@VincentLanglet)

4.5.3 - 2021-03-28

Fixed

4.5.2 - 2021-03-08

Fixed

4.5.1 - 2021-03-06

Removed

  • [#841] Remove @internal annotation from BlockServiceTestCase class (@core23)

4.5.0 - 2021-01-11

Added

4.4.0 - 2020-10-11

Changed

Fixed

  • [#763] Fix some parameter name mismatches for PHP 8 (@core23)

Removed

4.3.0 - 2020-08-11

Added

Changed

  • [#676] * Lazy BlockExtension to speed Twig initialization (@mikemix)

Removed

4.2.0 - 2020-03-21

Added

  • Hungarian translations
  • Allow knp-menu-bundle 3

4.1.0 - 2019-12-16

Added

  • Added support for symfony/event-dispatcher-contracts 2.x

Changed

  • Remove current timestamp from cache key

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.23.3 - 2021-11-04

Fixed

3.23.2 - 2021-07-20

Fixed

  • [#891] Fix inconsistencies in parameter names between interfaces and their implementations (@greg0ire)

3.23.1 - 2021-05-01

Fixed

  • [#873] Flipped ServiceListType returned choices option (@gremo)
  • [#871] Flipped sonata.block.form.type.container_template service array argument in the extension (@gremo)
  • [#860] BlockServiceTestCase phpdoc (@VincentLanglet)
  • [#859] Fix phpdoc for test class (@core23)

3.23.0 - 2021-03-09

Added

Changed

  • [#845] Extend possible return type of BlockContextInterface::getTemplate() (@core23)

3.22.1 - 2021-03-06

Removed

  • [#841] Remove @internal annotation from BlockServiceTestCase class (@core23)

3.22.0 - 2021-01-19

Added

3.21.0 - 2020-08-25

Added

  • [#732] Added support for "twig/twig:^3.0" (@phansys)
  • [#730] Added support for symfony/options-resolver:^5.1 (@phansys)

Removed

3.20.0 - 2020-06-23

Removed

  • remove SonataCoreBundle dependencies

3.19.0 - 2020-05-08

Added

  • Support for doctrine/common 3.

3.18.5 - 2020-05-08

Fixed

  • Drop unnecessary constructor

3.18.4 - 2020-02-10

Removed

  • Removed deprecation warnings when extending BlockServiceTestCase

3.18.3 - 2019-12-30

Fixed

  • Crash when attempting to display the side menu when using sonata/ecommerce and Symfony 4.1

3.18.2 - 2019-11-24

Fixed

  • Make cache optional again

3.18.1 - 2019-09-19

Changed

  • Replaced deprecated EngineInterface

3.18.0 - 2019-09-11

Added

  • Added support for PSR Cache

Deprecated

  • Deprecate Sonata Cache in favor of PSR Cache

Removed

  • Remove default image from metadata

Changed

  • Removed unused BlockServiceManager constructor arguments

Fixed

  • Fix auto-registration of tagged blocks
  • Added explicit type check
  • Added check before calling deprecated method
  • Fix Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch() deprecation

3.17.0 - 2019-08-16

Deprecated

  • "sonata.templating", "sonata.templating.locator" and "sonata.templating.name_parser" services;
  • Sonata\BlockBundle\Templating\TwigEngine and Sonata\BlockBundle\Test\FakeTemplating classes.

Fixed

  • Fixed validation of EditableBlock

3.16.1 - 2019-08-05

Added

  • Added support for PHPUnit 8 for provided BlockServiceTestCase

3.16.0 - 2019-07-31

Deprecated

  • BaseCommand class
  • JMS annotations
  • AbstractBlockServiceTestCase class with BlockServiceTestCase
  • Passing block name to the AbstractBlockService class
  • AdminBlockServiceInterface interface
  • AbstractAdminBlockService class
  • BlockServiceInterface::getName method
  • BaseCommand::getBlockServiceManager() method in favor of BaseCommand::$blockManager property;
  • Extending DebugBlocksCommand class, which will be declared final in 4.0;
  • Invoking DebugBlocksCommand with "debug:sonata:block" as name.
  • Marked all classes as @final

Removed

  • Removed deprecation warning when block name does not match service id

Fixed

  • error when debugging blocks with the required options.
  • serializing issue for BlockDataCollector
  • Deprecation caused by usage of ContainerAwareCommand.

3.15.0 - 2019-03-03

Changed

  • Improve performance and entropy when calling uniqid from @jacquesbh.

Fixed

  • crash when using null as a block name in service definitions

3.14.0 - 2019-01-12

Fixed

  • Deprecations about Sonata\CoreBundle\Form\*
  • Deprecations about Sonata\CoreBundle\Model\*
  • Fix deprecation for symfony/config 4.2+

Removed

  • support for php 5 and php 7.0

3.13.0 - 2018-12-03

Added

  • All blocks containing sonata.block will be auto registered
  • Added EditableBlockService and FormMapper interfaces
  • Added Meta\Metadata class (import from CoreBundle)
  • Added Meta\MetadataInterface class (import from CoreBundle)
  • Added debug:sonata:block command alias for DebugBlocksCommand

Fixed

  • Allow autowiring blocks
  • Now the deprecated setDefaultSettings() for blocks is handled correctly. You should avoid using it in favor of configureSettings() but it will work and show the deprecated message.

Deprecated

  • Deprecated BlockServiceInterface::getJavascripts()
  • Deprecated BlockServiceInterface::getStylesheets()

3.12.1 - 2018-03-12

Added

  • Missing italian translations

Fixed

  • sonata.block.manager is public
  • Fixed old form alias usage

3.12.0 - 2018-02-08

Added

  • added title translation domain option to RssBlockService
  • added icon option to RssBlockService
  • added class option to RssBlockService

Fixed

  • Fixed OptionsResolver handling in command

Removed

  • Removed default title from RssBlockService
  • Redesign RssBlockService template
  • Removed support for PHPUnit 4 in AbstractBlockServiceTestCase

3.11.0 - 2018-01-23

Added

  • Added symfony/asset and symfony/templating dependencies
  • Added new service sonata.templating for use in place of templating
  • Add tag templating.helper back to sonata.block.templating.helper service

Changed

  • Referencing templates using Twig namespaced syntax

Removed

  • Removed tag templating.helper from sonata.block.templating.helper service

3.10.0 - 2018-01-16

Fixed

  • Definition argument incompatibilities with Symfony 2.8

Removed

  • Removed requirement for default_contexts config parameter

3.9.2 - 2018-01-08

Fixed

  • Symfony recipe compatibility with twig-bundle requirement.

3.9.1 - 2018-01-07

Fixed

  • Make services explicit public
  • Autoregister blocks as public services

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 - 2017-11-30

Added

  • added Russian translations
  • Implement reset method in BlockDataCollector to be compatible with Symfony 3.4

Fixed

  • It is now allowed to install Symfony 4
  • AbstractBlockServiceTestCase now works with PHPUnit >= 6.0

3.7.0 - 2017-11-28

Changed

  • menuRegistry parameter in Sonata\BlockBundle\Block\Service\MenuBlockService to be allowed the type of array

3.6.0 - 2017-11-27

Changed

  • Rollback to PHP 5.6 as minimum support.

Fixed

  • Register commands as services to prevent deprecation notices on Symfony 3.4
  • move commands.yml to correct folder

Removed

  • Remove pre sf2.8 bc code

3.5.0 - 2017-10-25

Added

  • support for sonata/cache 2

Deprecated

  • Option resolver BC trick.

Fixed

  • OutOfBoundsException while replacing block service default name argument

Removed

  • Support for old versions of PHP and Symfony.

3.4.0 - 2017-09-19

Added

  • added block annotation

Fixed

  • a notice that appeared when defining blocks through annotations
  • Changed order of statements in the getEventListeners() method, to prevent issues where you pass in a \Closure class
  • deprecation notices related to addClassesToCompile

3.3.2 - 2017-03-23

Fixed

  • Resolve container parameters before comparing class names
  • Internal deprecations finally fixed

3.3.1 - 2017-02-28

Fixed

  • Profiler block Twig 2.0 compatibility
  • Some unwanted deprecation notices about code we can't change until next major version have been removed

3.3.0 - 2017-01-17

Added

  • Created MenuManager to collect all menus for the MenuBlockService
  • Added new sonata.block_menu tag

Changed

  • Empty block names are automatically set via TweakCompilerPass

Deprecated

  • Deprecated the array parameter in MenuBlockServicein favor of the new MenuManager

Fixed

  • Missing italian translation

Removed

  • Deprecated BaseBlockService class was removed from the list of classes to compile

3.2.0 - 2016-09-20

Added

  • Created Sonata\BlockBundle\Block\Service\AbstractAdminBlockService class
  • Created Sonata\BlockBundle\Block\Service\AbstractBlockService class
  • Created Sonata\BlockBundle\Block\Service\AdminBlockServiceInterface class
  • Created Sonata\BlockBundle\Block\Service\BlockServiceInterface class

Deprecated

  • The class Sonata\BlockBundle\Block\AbstractBlockService is deprecated
  • The class Sonata\BlockBundle\Block\BaseBlockService is deprecated
  • The class Sonata\BlockBundle\Block\BlockAdminServiceInterface is deprecated
  • The class Sonata\BlockBundle\Block\BlockServiceInterface is deprecated

3.1.1 - 2016-07-12

Deprecated

  • Deprecate Tests\Block\Service\FakeTemplating in favor of Test\Mock\MockTemplating (missing PR for 3.1.0)

3.1.0 - 2016-07-12

Changed

  • Tests for *BlockService* now uses AbstractBlockServiceTestCase

Deprecated

  • Deprecate empty class BaseTestBlockService
  • Deprecate Tests\Block\AbstractBlockServiceTest in favor of Test\AbstractBlockServiceTestCase

Fixed

  • Profiler block design for Symfony Profiler v2

Removed

  • Internal test classes are now excluded from the auto-loader

3.0.1 - 2016-06-14

Changed

  • The log level on exceptions in BlockRenderer is decreased from critical to error
  • Replaced profiler icon with existing icon from profiler toolbar

Fixed

  • Error with the default extension configuration for config:dump-reference command

Removed

  • Removed the asterisk sign from the profiler toolbar to be compliant with Symfony standard