All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
5.1.1 - 2024-10-18
- [#1212] Symfony 7.1 deprecation about
Symfony\Component\HttpKernel\DependencyInjection\Extension
usage (@VincentLanglet)
5.1.0 - 2023-11-23
- [#1193] Symfony 7 support (@VincentLanglet)
5.0.1 - 2023-07-22
- [#1187] Italian translation keys from
sonata.block.*
tosonata.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
- [#1159] Add return types to
FormMapper
. (@jordisala1991)
- [#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
BlockManagerInterface
deprecated class. (@jordisala1991)
4.21.0 - 2023-05-13
- [#1172] Support for
sonata-project/form-extensions
2.0 (@jordisala1991)
4.20.0 - 2023-03-10
- [#1142] Allow covariance for parameters of RecursiveBlockIterator (@VincentLanglet)
4.19.0 - 2022-10-25
- [#1122] Support for doctrine/collections 2 (@VincentLanglet)
- [#1124] Changed Menu name settings
required
field fromfalse
totrue
ingetFormSettingsKeys
(@eerison)
4.18.0 - 2022-09-28
- [#1112] AbstractMenuBlockService (@VincentLanglet)
- [#1111] Final annotation to MenuBlockService (@VincentLanglet)
- [#1115] BlockServiceManager::load throw a BlockServiceNotFoundException when the block is not found. (@JeromeEngelnAdeliom)
- [#1112] MenuBlockService current_uri option (@VincentLanglet)
- [#1112] MenuBlockService menu_class option (@VincentLanglet)
- [#1112] MenuBlockService children_class option (@VincentLanglet)
4.17.0 - 2022-08-27
- [#1100] Add
removeChild
to be consistent withaddChild
for Block Model. (@jordisala1991)
4.16.2 - 2022-08-12
- [#1098] Remove
editable
field fromContainerBlockService
, it was added twice. (@jordisala1991)
4.16.1 - 2022-08-05
- [#1093] Change typehint of
addChild
toBlockInterface
instead ofself
. (@jordisala1991)
- [#1090] Avoid deprecation for the
hasChildren
method. (@jordisala1991)
4.16.0 - 2022-07-20
- [#1087] BlockInterface::addChild() (@VincentLanglet)
- [#1087] BlockInterface::hasChild() (@VincentLanglet)
- [#1087] BlockInterface::getChildren() now returns iterable (@VincentLanglet)
- [#1087] BlockInterface::addChildren() (@VincentLanglet)
- [#1087] BlockInterface::hasChildren() (@VincentLanglet)
4.15.0 - 2022-07-18
- [#1080] Add lazy description to commands. (@jordisala1991)
4.14.0 - 2022-06-23
4.13.0 - 2022-05-24
- [#1055] Add explicit dependency on
psr/container
andpsr/log
. (@jordisala1991)
- [#1068] FormMapper::create() method. (@VincentLanglet)
- [#1051] Deprecated not passing container types as second argument to
BlockServiceManager::__construct
(@dmaicher)
- [#1055] Remove dependency on
sonata-project/twig-extensions
since it wasn't used. (@jordisala1991)
4.12.0 - 2022-04-27
- [#1045] Deprecated method
AbstractBlockService::renderPrivateResponse()
(@dmaicher) - [#1045] Deprecated option
cache_policy
onMenuBlockService
(@dmaicher) - [#1042] Deprecated passing an instance of
BlockServiceManagerInterface
as first argument forBlockHelper::__construct
(@dmaicher) - [#1042] Deprecated
BaseBlock::$ttl
(@dmaicher) - [#1039] Deprecated passing array
$cacheBlocks
as 3rd argument forBlockContextManager::__construct
(@dmaicher) - [#1039] Deprecated
BlockContextManagerInterface::CACHE_KEY
(@dmaicher)
4.11.0 - 2022-03-07
- [#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 tofalse
(@dmaicher)
- [#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
- [#1012] Not passing a string value for the template setting of a BlockContext (@VincentLanglet)
4.9.1 - 2022-01-01
- [#997] Wrong deprecation message in BlockContextManager with Symfony 4 (@VincentLanglet)
4.9.0 - 2021-12-04
- [#990] Added support for
symfony/event-dispatcher-contracts
^3.0. (@jordisala1991)
4.8.0 - 2021-11-01
- [#942] Support for Symfony 6. (@jordisala1991)
- [#956] Some phpdoc (@VincentLanglet)
- [#939] Deprecations triggered using Symfony 5.4 (@franmomu)
4.7.0 - 2021-08-06
- [#899]
Sonata\BlockBundle\Form\Mapper\FormMapper
methods signature to be compatible withSonata\AdminBundle\Form\Mapper\FormMapper
(@VincentLanglet)
4.6.0 - 2021-05-26
- [#878] Flipped
sonata.block.form.type.container_template
service array argument in the extension (@VincentLanglet)
4.5.3 - 2021-03-28
- [#861]
BlockServiceTestCase
phpdoc (@VincentLanglet)
4.5.2 - 2021-03-08
- [#846] Assertion made by
assertSettings()
(@VincentLanglet)
4.5.1 - 2021-03-06
4.5.0 - 2021-01-11
4.4.0 - 2020-10-11
4.3.0 - 2020-08-11
4.2.0 - 2020-03-21
- Hungarian translations
- Allow knp-menu-bundle 3
4.1.0 - 2019-12-16
- Added support for
symfony/event-dispatcher-contracts
2.x
- Remove current timestamp from cache key
4.0.0 - 2019-11-24
- Added support for Symfony 5
- Add support for twig 3
- Add
BlockLoaderInterface::exists
method to interface - Add
BlockContextManagerInterface::exists
method to interface
- 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 togetTwig
- The block name is automatically set via
TweakCompilerPass
- Fix some PhpStorm findings
- Fix some phpstan findings
- Fix twig import of macros
- Load menu block only when KnpMenuBundle exist
- Remove undefined method call
- 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
incomposer.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
3.23.2 - 2021-07-20
- [#891] Fix inconsistencies in parameter names between interfaces and their implementations (@greg0ire)
3.23.1 - 2021-05-01
- [#873] Flipped
ServiceListType
returnedchoices
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
- [#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)
3.22.1 - 2021-03-06
3.22.0 - 2021-01-19
- [#778] Added Dutch translations (@zghosts)
- [#821] Allow PHP8 (@VincentLanglet)
3.21.0 - 2020-08-25
- [#732] Added support for "twig/twig:^3.0" (@phansys)
- [#730] Added support for symfony/options-resolver:^5.1 (@phansys)
3.20.0 - 2020-06-23
- remove SonataCoreBundle dependencies
3.19.0 - 2020-05-08
- Support for
doctrine/common
3.
3.18.5 - 2020-05-08
- Drop unnecessary constructor
3.18.4 - 2020-02-10
- Removed deprecation warnings when extending
BlockServiceTestCase
3.18.3 - 2019-12-30
- Crash when attempting to display the side menu when using sonata/ecommerce and Symfony 4.1
3.18.2 - 2019-11-24
- Make cache optional again
3.18.1 - 2019-09-19
- Replaced deprecated EngineInterface
3.18.0 - 2019-09-11
- Added support for PSR Cache
- Deprecate Sonata Cache in favor of PSR Cache
- Remove default image from metadata
- Removed unused BlockServiceManager constructor arguments
- 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
- "sonata.templating", "sonata.templating.locator" and "sonata.templating.name_parser" services;
Sonata\BlockBundle\Templating\TwigEngine
andSonata\BlockBundle\Test\FakeTemplating
classes.
- Fixed validation of
EditableBlock
3.16.1 - 2019-08-05
- Added support for PHPUnit 8 for provided
BlockServiceTestCase
3.16.0 - 2019-07-31
BaseCommand
class- JMS annotations
AbstractBlockServiceTestCase
class withBlockServiceTestCase
- Passing block name to the AbstractBlockService class
AdminBlockServiceInterface
interfaceAbstractAdminBlockService
classBlockServiceInterface::getName
methodBaseCommand::getBlockServiceManager()
method in favor ofBaseCommand::$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 deprecation warning when block name does not match service id
- error when debugging blocks with the required options.
- serializing issue for
BlockDataCollector
- Deprecation caused by usage of
ContainerAwareCommand
.
3.15.0 - 2019-03-03
- Improve performance and entropy when calling
uniqid
from @jacquesbh.
- crash when using
null
as a block name in service definitions
3.14.0 - 2019-01-12
- Deprecations about
Sonata\CoreBundle\Form\*
- Deprecations about
Sonata\CoreBundle\Model\*
- Fix deprecation for symfony/config 4.2+
- support for php 5 and php 7.0
3.13.0 - 2018-12-03
- All blocks containing
sonata.block
will be auto registered - Added
EditableBlockService
andFormMapper
interfaces - Added
Meta\Metadata
class (import from CoreBundle) - Added
Meta\MetadataInterface
class (import from CoreBundle) - Added
debug:sonata:block
command alias forDebugBlocksCommand
- 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
BlockServiceInterface::getJavascripts()
- Deprecated
BlockServiceInterface::getStylesheets()
3.12.1 - 2018-03-12
- Missing italian translations
- sonata.block.manager is public
- Fixed old form alias usage
3.12.0 - 2018-02-08
- added title translation domain option to
RssBlockService
- added icon option to
RssBlockService
- added class option to
RssBlockService
- Fixed OptionsResolver handling in command
- Removed default title from
RssBlockService
- Redesign
RssBlockService
template - Removed support for PHPUnit 4 in
AbstractBlockServiceTestCase
3.11.0 - 2018-01-23
- Added
symfony/asset
andsymfony/templating
dependencies - Added new service
sonata.templating
for use in place oftemplating
- Add tag
templating.helper
back tosonata.block.templating.helper
service
- Referencing templates using Twig namespaced syntax
- Removed tag
templating.helper
fromsonata.block.templating.helper
service
3.10.0 - 2018-01-16
- Definition argument incompatibilities with Symfony 2.8
- Removed requirement for
default_contexts
config parameter
3.9.2 - 2018-01-08
- Symfony recipe compatibility with twig-bundle requirement.
3.9.1 - 2018-01-07
- Make services explicit public
- Autoregister blocks as public services
3.9.0 - 2017-12-12
- Added missing validation translations
- Added missing translation to blocks
- Changed
MenuRegistry::add
method signature to allow string values instead ofMenuBuilderInterface
- Removed usage of old form type aliases
- deprecated
sonata.block.menu
tag in favor of the existingknp_menu.menu
tag - deprecated
MenuBuilderInterface
class
3.8.0 - 2017-11-30
- added Russian translations
- Implement reset method in
BlockDataCollector
to be compatible with Symfony 3.4
- It is now allowed to install Symfony 4
AbstractBlockServiceTestCase
now works with PHPUnit >= 6.0
3.7.0 - 2017-11-28
- menuRegistry parameter in
Sonata\BlockBundle\Block\Service\MenuBlockService
to be allowed the type of array
3.6.0 - 2017-11-27
- Rollback to PHP 5.6 as minimum support.
- Register commands as services to prevent deprecation notices on Symfony 3.4
- move
commands.yml
to correct folder
- Remove pre sf2.8 bc code
3.5.0 - 2017-10-25
- support for sonata/cache 2
- Option resolver BC trick.
- OutOfBoundsException while replacing block service default name argument
- Support for old versions of PHP and Symfony.
3.4.0 - 2017-09-19
- added block annotation
- 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
- Resolve container parameters before comparing class names
- Internal deprecations finally fixed
3.3.1 - 2017-02-28
- 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
- Created
MenuManager
to collect all menus for theMenuBlockService
- Added new
sonata.block_menu
tag
- Empty block names are automatically set via
TweakCompilerPass
- Deprecated the array parameter in
MenuBlockService
in favor of the newMenuManager
- Missing italian translation
- Deprecated
BaseBlockService
class was removed from the list of classes to compile
3.2.0 - 2016-09-20
- 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
- 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
- Deprecate
Tests\Block\Service\FakeTemplating
in favor ofTest\Mock\MockTemplating
(missing PR for 3.1.0)
3.1.0 - 2016-07-12
- Tests for
*BlockService*
now usesAbstractBlockServiceTestCase
- Deprecate empty class
BaseTestBlockService
- Deprecate
Tests\Block\AbstractBlockServiceTest
in favor ofTest\AbstractBlockServiceTestCase
- Profiler block design for Symfony Profiler v2
- Internal test classes are now excluded from the auto-loader
3.0.1 - 2016-06-14
- The log level on exceptions in
BlockRenderer
is decreased from critical to error - Replaced profiler icon with existing icon from profiler toolbar
- Error with the default extension configuration for
config:dump-reference
command
- Removed the asterisk sign from the profiler toolbar to be compliant with Symfony standard