PackageTrack
Sign in Get early access

sonata-project/block-bundle

Symfony SonataBlockBundle

5.4.0 28M downloads/mo #1566 most downloaded on Packagist sonata-project/SonataBlockBundle

What this package is like to depend on

Last release 8 months ago

30 Nov 2025

Release timing varies

gaps range from 3 weeks to 11 months

Most releases are documented

notes for 76 of 109 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

110 releases · first in 2013

2 releases in the last 12 months

see the full history below

Release timeline

110 releases · Feb 2013 to Nov 2025
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 60 of 110
  1. 5.4.0 30 Nov 2025
    Release notes

    Added

    Removed

    Open source →
    Release notes

    Added

    Removed

    Open source →
  2. 5.3.0 27 Nov 2025
    Release notes

    Added

    • [#1247] Added default_protocol equals true for UrlType at src/Block/Service/RssBlockService.php (@eerison)

    Changed

    • [#1247] Changed passing array to named argument for Length validation constraint in src/Block/Service/RssBlockService.php (@eerison)

    Fixed

    Removed

    Open source →
    Release notes

    Added

    • [#1247] Added default_protocol equals true for UrlTypeatsrc/Block/Service/RssBlockService.php` (@eerison)

    Changed

    • [#1247] Changed passing array to named argument for Length validation constraint in src/Block/Service/RssBlockService.php (@eerison)

    Fixed

    Removed

    Open source →
  3. 5.2.0 16 May 2025
    Release notes

    Deprecated

    Open source →
    Release notes

    Deprecated

    Open source →
  4. 5.1.2 05 Feb 2025
    Release notes

    Fixed

    • [#1218] Fix: form validations are by passed when an Exception is thrown (@sad270)
    Open source →
    Release notes

    Fixed

    • [#1218] Fix: form validations are by passed when an Exception is thrown (@sad270)
    Open source →
  5. 5.1.1 18 Oct 2024
    Release notes

    Fixed

    • [#1212] Symfony 7.1 deprecation about Symfony\Component\HttpKernel\DependencyInjection\Extension usage (@VincentLanglet)
    Open source →
    Release notes

    Fixed

    • [#1212] Symfony 7.1 deprecation about Symfony\Component\HttpKernel\DependencyInjection\Extension usage (@VincentLanglet)
    Open source →
  6. 5.1.0 23 Nov 2023
    Release notes

    Added

    Open source →
    Release notes

    Added

    Open source →
  7. 5.0.1 22 Jul 2023
    Release notes

    Fixed

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

    Fixed

    • [#1187] Italian translation keys from sonata.block.* to sonata.block.service.* (@gremo)
    • [#1188] Translation keys for nl and ru (@gremo)
    Open source →
  8. 5.0.0 20 Jul 2023
    Release notes
    • No significant changes
    Open source →
  9. 5.0.0-alpha-1 03 Jun 2023 pre-release
    Release notes

    Added

    Changed

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

    Removed

    Open source →
    Release notes

    Added

    Changed

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

    Removed

    Open source →
  10. 4.21.0 13 May 2023
    Release notes

    Added

    Open source →
    Release notes

    Added

    Open source →
  11. 4.20.0 10 Mar 2023
    Release notes

    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
    Open source →
  12. 4.19.0 25 Oct 2022
    Release notes

    Added

    Changed

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

    Fixed

    Open source →
  13. 4.18.0 28 Sep 2022
    Release notes

    Added

    Changed

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

    Deprecated

    Open source →
  14. 4.17.0 27 Aug 2022
    Release notes

    Added

    Open source →
  15. 4.16.2 12 Aug 2022
    Release notes

    Removed

    • [#1098] Remove editable field from ContainerBlockService, it was added twice. (@jordisala1991)
    Open source →
  16. 4.16.1 05 Aug 2022
    Release notes

    Changed

    Fixed

    Open source →
  17. 4.16.0 20 Jul 2022
    Release notes

    Added

    Changed

    Deprecated

    Open source →
  18. 4.15.0 18 Jul 2022
    Release notes

    Added

    Open source →
  19. 4.14.0 23 Jun 2022
    Release notes

    Fixed

    Removed

    Open source →
  20. 4.13.0 24 May 2022
    Release notes

    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)
    Open source →
  21. 4.12.0 27 Apr 2022
    Release notes

    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)
    Open source →
  22. 4.11.0 07 Mar 2022
    Release notes

    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)
    Open source →
  23. 4.10.0 28 Feb 2022
    Release notes

    Deprecated

    Open source →
  24. 4.9.1 01 Jan 2022
    Release notes

    Fixed

    Open source →
  25. 4.9.0 04 Dec 2021
    Release notes

    Added

    Open source →
  26. 4.8.0 01 Nov 2021
    Release notes

    Added

    Changed

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

    Deprecated

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

    Fixed

    Open source →
  27. 4.7.0 06 Aug 2021
    Release notes

    Changed

    • [#899] Sonata\BlockBundle\Form\Mapper\FormMapper methods signature to be compatible with Sonata\AdminBundle\Form\Mapper\FormMapper (@VincentLanglet)
    Open source →
  28. 4.6.0 27 May 2021
    Release notes

    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)
    Open source →
  29. 4.5.3 28 Mar 2021
    Release notes

    Fixed

    Open source →
  30. 4.5.2 08 Mar 2021
    Release notes

    Fixed

    Open source →
  31. 4.5.1 06 Mar 2021
    Release notes

    Removed

    • [#841] Remove @internal annotation from BlockServiceTestCase class (@core23)
    Open source →
  32. 4.5.0 12 Jan 2021
    Release notes

    Added

    Open source →
  33. 4.4.0 11 Oct 2020
    Release notes

    Changed

    Fixed

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

    Removed

    Open source →
  34. 4.3.0 11 Aug 2020
    Release notes

    Added

    Changed

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

    Removed

    Open source →
  35. 4.2.0 21 Mar 2020
    Release notes

    Added

    • Hungarian translations
    • Allow knp-menu-bundle 3
    Open source →
  36. 4.1.0 16 Dec 2019
    Release notes

    Added

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

    Changed

    • Remove current timestamp from cache key
    Open source →
  37. 4.0.0 24 Nov 2019
    Release notes

    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
    Open source →
  38. 3.23.3 04 Nov 2021
    Release notes

    Fixed

    Open source →
  39. 3.23.2 19 Jul 2021
    Release notes

    Fixed

    • [#891] Fix inconsistencies in parameter names between interfaces and their implementations (@greg0ire)
    Open source →
  40. 3.23.1 01 May 2021
    Release notes

    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)
    Open source →
  41. 3.23.0 09 Mar 2021
    Release notes

    Added

    Changed

    • [#845] Extend possible return type of BlockContextInterface::getTemplate() (@core23)
    Open source →
  42. 3.22.1 06 Mar 2021
    Release notes

    Removed

    • [#841] Remove @internal annotation from BlockServiceTestCase class (@core23)
    Open source →
  43. 3.22.0 19 Jan 2021
    Release notes

    Added

    Open source →
  44. 3.21.0 27 Aug 2020
    Release notes

    Added

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

    Removed

    Open source →
  45. 3.20.0 23 Jun 2020
    Release notes

    Removed

    • remove SonataCoreBundle dependencies
    Open source →
  46. 3.19.0 02 Jun 2020
    Release notes

    Added

    • Support for doctrine/common 3.
    Open source →
  47. 3.18.5 08 May 2020
    Release notes

    Fixed

    • Drop unnecessary constructor
    Open source →
  48. 3.18.4 10 Feb 2020
    Release notes

    Removed

    • Removed deprecation warnings when extending BlockServiceTestCase
    Open source →
  49. 3.18.3 30 Dec 2019
    Release notes

    Fixed

    • Crash when attempting to display the side menu when using sonata/ecommerce and Symfony 4.1
    Open source →
  50. 3.18.2 24 Nov 2019
    Release notes

    Fixed

    • Make cache optional again
    Open source →
  51. 3.18.1 19 Sep 2019
    Release notes

    Changed

    • Replaced deprecated EngineInterface
    Open source →
  52. 3.18.0 11 Sep 2019
    Release notes

    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
    Open source →
  53. 3.17.0 16 Aug 2019
    Release notes

    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
    Open source →
  54. 3.16.1 05 Aug 2019
    Release notes

    Added

    • Added support for PHPUnit 8 for provided BlockServiceTestCase
    Open source →
  55. 3.16.0 31 Jul 2019
    Release notes

    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.
    Open source →
  56. 3.15.0 03 Mar 2019
    Release notes

    Changed

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

    Fixed

    • crash when using null as a block name in service definitions
    Open source →
  57. 3.14.0 12 Jan 2019
    Release notes

    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
    Open source →
  58. 3.13.0 03 Dec 2018
    Release notes

    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()
    Open source →
  59. 3.12.1 12 Mar 2018
    Release notes

    Added

    • Missing italian translations

    Fixed

    • sonata.block.manager is public
    • Fixed old form alias usage
    Open source →
  60. 3.12.0 08 Feb 2018
    Release notes

    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
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive