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
Releases
latest 60 of 110-
5.4.030 Nov 2025 -
5.3.027 Nov 2025Release notes
Open source →Added
- [#1247] Added
default_protocolequalstruefor UrlType atsrc/Block/Service/RssBlockService.php(@eerison)
Changed
- [#1247] Changed passing
arraytonamedargument forLengthvalidation constraint insrc/Block/Service/RssBlockService.php(@eerison)
Fixed
Removed
Release notes
Open source →Added
- [#1247] Added
default_protocolequalstruefor UrlTypeatsrc/Block/Service/RssBlockService.php` (@eerison)
Changed
- [#1247] Changed passing
arraytonamedargument forLengthvalidation constraint insrc/Block/Service/RssBlockService.php(@eerison)
Fixed
Removed
- [#1247] Added
-
5.2.016 May 2025 -
5.1.205 Feb 2025Release notes
Open source →Release notes
Open source → -
5.1.118 Oct 2024Release notes
Open source →Fixed
- [#1212] Symfony 7.1 deprecation about
Symfony\Component\HttpKernel\DependencyInjection\Extensionusage (@VincentLanglet)
Release notes
Open source →Fixed
- [#1212] Symfony 7.1 deprecation about
Symfony\Component\HttpKernel\DependencyInjection\Extensionusage (@VincentLanglet)
- [#1212] Symfony 7.1 deprecation about
-
5.1.023 Nov 2023 -
5.0.122 Jul 2023 -
5.0.020 Jul 2023 -
5.0.0-alpha-103 Jun 2023 pre-releaseRelease notes
Open source →Added
- [#1159] Add return types to
FormMapper. (@jordisala1991)
Changed
Removed
- [#1158] Remove block serializer configuration (@jordisala1991)
- [#1060] Remove support for Symfony ^4.4 (@jordisala1991)
- [#1060] Remove support for Twig ^2 (@jordisala1991)
- [#1060] Remove support for
doctrine/common^2 (@jordisala1991) - [#1056] Remove
BlockManagerInterfacedeprecated class. (@jordisala1991)
Release notes
Open source →Added
- [#1159] Add return types to
FormMapper. (@jordisala1991)
Changed
Removed
- [#1158] Remove block serializer configuration (@jordisala1991)
- [#1060] Remove support for Symfony ^4.4 (@jordisala1991)
- [#1060] Remove support for Twig ^2 (@jordisala1991)
- [#1060] Remove support for
doctrine/common^2 (@jordisala1991) - [#1056] Remove
BlockManagerInterfacedeprecated class. (@jordisala1991)
- [#1159] Add return types to
-
4.21.013 May 2023Release notes
Open source →Added
- [#1172] Support for
sonata-project/form-extensions2.0 (@jordisala1991)
Release notes
Open source →Added
- [#1172] Support for
sonata-project/form-extensions2.0 (@jordisala1991)
- [#1172] Support for
-
4.20.010 Mar 2023Release notes
Open source →Added
Fixed
- [#1142] Allow covariance for parameters of RecursiveBlockIterator (@VincentLanglet)
Removed
-
4.19.025 Oct 2022Release notes
Open source →Added
- [#1122] Support for doctrine/collections 2 (@VincentLanglet)
Changed
- [#1124] Changed Menu name settings
requiredfield fromfalsetotrueingetFormSettingsKeys(@eerison)
Fixed
-
4.18.028 Sep 2022Release notes
Open source →Added
- [#1112] AbstractMenuBlockService (@VincentLanglet)
- [#1111] Final annotation to MenuBlockService (@VincentLanglet)
Changed
- [#1115] BlockServiceManager::load throw a BlockServiceNotFoundException when the block is not found. (@JeromeEngelnAdeliom)
Deprecated
- [#1112] MenuBlockService current_uri option (@VincentLanglet)
- [#1112] MenuBlockService menu_class option (@VincentLanglet)
- [#1112] MenuBlockService children_class option (@VincentLanglet)
-
4.17.027 Aug 2022Release notes
Open source →Added
- [#1100] Add
removeChildto be consistent withaddChildfor Block Model. (@jordisala1991)
- [#1100] Add
-
4.16.212 Aug 2022Release notes
Open source →Removed
- [#1098] Remove
editablefield fromContainerBlockService, it was added twice. (@jordisala1991)
- [#1098] Remove
-
4.16.105 Aug 2022Release notes
Open source →Changed
- [#1093] Change typehint of
addChildtoBlockInterfaceinstead ofself. (@jordisala1991)
Fixed
- [#1090] Avoid deprecation for the
hasChildrenmethod. (@jordisala1991)
- [#1093] Change typehint of
-
4.16.020 Jul 2022Release notes
Open source →Added
- [#1087] BlockInterface::addChild() (@VincentLanglet)
- [#1087] BlockInterface::hasChild() (@VincentLanglet)
Changed
- [#1087] BlockInterface::getChildren() now returns iterable (@VincentLanglet)
Deprecated
- [#1087] BlockInterface::addChildren() (@VincentLanglet)
- [#1087] BlockInterface::hasChildren() (@VincentLanglet)
-
4.15.018 Jul 2022 -
4.14.023 Jun 2022 -
4.13.024 May 2022Release notes
Open source →Added
- [#1055] Add explicit dependency on
psr/containerandpsr/log. (@jordisala1991)
Changed
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-extensionssince it wasn't used. (@jordisala1991)
- [#1055] Add explicit dependency on
-
4.12.027 Apr 2022Release notes
Open source →Changed
Deprecated
- [#1045] Deprecated method
AbstractBlockService::renderPrivateResponse()(@dmaicher) - [#1045] Deprecated option
cache_policyonMenuBlockService(@dmaicher) - [#1042] Deprecated passing an instance of
BlockServiceManagerInterfaceas first argument forBlockHelper::__construct(@dmaicher) - [#1042] Deprecated
BaseBlock::$ttl(@dmaicher) - [#1039] Deprecated passing array
$cacheBlocksas 3rd argument forBlockContextManager::__construct(@dmaicher) - [#1039] Deprecated
BlockContextManagerInterface::CACHE_KEY(@dmaicher)
- [#1045] Deprecated method
-
4.11.007 Mar 2022Release notes
Open source →Deprecated
- [#1011] Integration with
SonataCacheBundlehas been deprecated (@dmaicher) - [#1011] Interface
Sonata\BlockBundle\Cache\HttpCacheHandlerInterfaceand it's implementations have been deprecated (@dmaicher) - [#1011] Constructor Signature of
Sonata\BlockBundle\Templating\Helper\BlockHelperchanged: all caching related arguments should be removed (@dmaicher) - [#1011] All caching configuration options have been deprecated and
sonata_block.http_cacheshould be set tofalse(@dmaicher)
Fixed
- [#1026] Do not trigger a deprecation if a template setting is not provided in a block context
__construct. (@VincentLanglet)
- [#1011] Integration with
-
4.10.028 Feb 2022Release notes
Open source →Deprecated
- [#1012] Not passing a string value for the template setting of a BlockContext (@VincentLanglet)
-
4.9.101 Jan 2022Release notes
Open source →Fixed
- [#997] Wrong deprecation message in BlockContextManager with Symfony 4 (@VincentLanglet)
-
4.9.004 Dec 2021Release notes
Open source →Added
- [#990] Added support for
symfony/event-dispatcher-contracts^3.0. (@jordisala1991)
- [#990] Added support for
-
4.8.001 Nov 2021Release notes
Open source →Added
- [#942] Support for Symfony 6. (@jordisala1991)
Changed
Deprecated
Fixed
- [#956] Some phpdoc (@VincentLanglet)
- [#939] Deprecations triggered using Symfony 5.4 (@franmomu)
-
4.7.006 Aug 2021Release notes
Open source →Changed
- [#899]
Sonata\BlockBundle\Form\Mapper\FormMappermethods signature to be compatible withSonata\AdminBundle\Form\Mapper\FormMapper(@VincentLanglet)
- [#899]
-
4.6.027 May 2021Release notes
Open source →Added
Fixed
- [#878] Flipped
sonata.block.form.type.container_templateservice array argument in the extension (@VincentLanglet)
- [#878] Flipped
-
4.5.328 Mar 2021 -
4.5.208 Mar 2021 -
4.5.106 Mar 2021Release notes
Open source → -
4.5.012 Jan 2021Release notes
Open source → -
4.4.011 Oct 2020 -
4.3.011 Aug 2020 -
4.2.021 Mar 2020 -
4.1.016 Dec 2019Release notes
Open source →Added
- Added support for
symfony/event-dispatcher-contracts2.x
Changed
- Remove current timestamp from cache key
- Added support for
-
4.0.024 Nov 2019Release notes
Open source →Added
- Added support for Symfony 5
- Add support for twig 3
- Add
BlockLoaderInterface::existsmethod to interface - Add
BlockContextManagerInterface::existsmethod 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::getTemplatingmethod renamed togetTwig- 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-dispatcherdependency - Removed default null values for arguments of
AbstractBlockServiceclass - Removed dependency on
symfony/templatingincomposer.json - Removed all temporary classes for templating
- Removed
FakeTemplatingclass - internal test classes are now excluded from the autoloader
- Removed
AbstractBlockServiceTest::$container
-
3.23.304 Nov 2021 -
3.23.219 Jul 2021 -
3.23.101 May 2021 -
3.23.009 Mar 2021Release notes
Open source →Added
- [#844] Support for "symfony/asset:^5.2" (@phansys)
- [#844] Support for "symfony/config:^5.2" (@phansys)
- [#844] Support for "symfony/dependency-injection:^5.2" (@phansys)
- [#844] Support for "symfony/http-foundation:^5.2" (@phansys)
- [#844] Support for "symfony/templating:^5.2" (@phansys)
Changed
-
3.22.106 Mar 2021Release notes
Open source → -
3.22.019 Jan 2021Release notes
Open source →Added
- [#778] Added Dutch translations (@zghosts)
- [#821] Allow PHP8 (@VincentLanglet)
-
3.21.027 Aug 2020 -
3.20.023 Jun 2020 -
3.19.002 Jun 2020 -
3.18.508 May 2020 -
3.18.410 Feb 2020Release notes
Open source →Removed
- Removed deprecation warnings when extending
BlockServiceTestCase
- Removed deprecation warnings when extending
-
3.18.330 Dec 2019Release notes
Open source →Fixed
- Crash when attempting to display the side menu when using sonata/ecommerce and Symfony 4.1
-
3.18.224 Nov 2019 -
3.18.119 Sep 2019 -
3.18.011 Sep 2019Release notes
Open source →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.016 Aug 2019Release notes
Open source →Deprecated
- "sonata.templating", "sonata.templating.locator" and "sonata.templating.name_parser" services;
Sonata\BlockBundle\Templating\TwigEngineandSonata\BlockBundle\Test\FakeTemplatingclasses.
Fixed
- Fixed validation of
EditableBlock
-
3.16.105 Aug 2019 -
3.16.031 Jul 2019Release notes
Open source →Deprecated
BaseCommandclass- JMS annotations
AbstractBlockServiceTestCaseclass withBlockServiceTestCase- Passing block name to the AbstractBlockService class
AdminBlockServiceInterfaceinterfaceAbstractAdminBlockServiceclassBlockServiceInterface::getNamemethodBaseCommand::getBlockServiceManager()method in favor ofBaseCommand::$blockManagerproperty;- Extending
DebugBlocksCommandclass, which will be declared final in 4.0; - Invoking
DebugBlocksCommandwith "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.003 Mar 2019Release notes
Open source →Changed
- Improve performance and entropy when calling
uniqidfrom @jacquesbh.
Fixed
- crash when using
nullas a block name in service definitions
- Improve performance and entropy when calling
-
3.14.012 Jan 2019Release notes
Open source →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
- Deprecations about
-
3.13.003 Dec 2018Release notes
Open source →Added
- All blocks containing
sonata.blockwill be auto registered - Added
EditableBlockServiceandFormMapperinterfaces - Added
Meta\Metadataclass (import from CoreBundle) - Added
Meta\MetadataInterfaceclass (import from CoreBundle) - Added
debug:sonata:blockcommand alias forDebugBlocksCommand
Fixed
- Allow autowiring blocks
- Now the deprecated
setDefaultSettings()for blocks is handled correctly. You should avoid using it in favor ofconfigureSettings()but it will work and show the deprecated message.
Deprecated
- Deprecated
BlockServiceInterface::getJavascripts() - Deprecated
BlockServiceInterface::getStylesheets()
- All blocks containing
-
3.12.112 Mar 2018Release notes
Open source →Added
- Missing italian translations
Fixed
- sonata.block.manager is public
- Fixed old form alias usage
-
3.12.008 Feb 2018Release notes
Open source →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
RssBlockServicetemplate - Removed support for PHPUnit 4 in
AbstractBlockServiceTestCase
- added title translation domain option to