All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
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.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