Skip to content

Latest commit

 

History

History
682 lines (550 loc) · 47.5 KB

CHANGELOG.md

File metadata and controls

682 lines (550 loc) · 47.5 KB

Change Log

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

4.7.2 - 2024-04-13

Fixed

Removed

  • [#1742] Removed the return type null for src/CmsManager/CmsPageManager::findContainer, (@eerison)

4.7.1 - 2023-12-08

Changed

  • [#1737] Changed runtime exception message for Host path sites (@eerison)

Fixed

  • [#1739] Fix sonata runtime, adding Symfony request factory. (@eerison)

4.7.0 - 2023-12-08

Added

Deprecated

Fixed

  • [#1734] CmsManagerSelector::isEditor always returns false (@tdumalin)

4.6.1 - 2023-11-21

Fixed

4.6.0 - 2023-09-07

Changed

  • [#1522] Uses Symfony Serializer to transform Page and Block Models into array for json (@Hanmac)

Deprecated

  • [#1522] Not implementing PageInterface::removeChild (@Hanmac)
  • [#1522] Not implementing PageInterface::removeBlock (@Hanmac)
  • [#1522] Not passing Serializer to Transformer as 5th argument (@Hanmac)

4.5.0 - 2023-07-22

Added

Removed

  • [#1702] Removed twig form themes from SonataPageExtension (@Hanmac)

4.4.0 - 2023-06-04

Added

4.3.0 - 2023-05-14

Added

4.2.0 - 2023-04-25

Removed

4.1.1 - 2023-04-12

Fixed

4.1.0 - 2023-03-10

Added

  • [#1660] Usage of list_action_button_content options and create publications icon (@gremo)

Fixed

Removed

  • [#1658] Support for PHP 7.4
  • [#1658] Support for Symfony 6.0 and 6.1
  • [#1658] Support for doctrine/persistence ^2.0.

4.0.0 - 2022-11-30

Changed

Fixed

  • [#1636] Fixed sonata:page:create-site command's option in the doc (@eerison)

4.0.0-alpha-1 - 2022-10-22

Added

Changed

  • [#1437] Updated ValidatorTest to use ConstraintValidatorTestCase (@Hanmac)
  • [#1460] Changed BaseCommand::class to Symfony\Command::class (@eerison)
  • [#1493] Change SnapshotChildrenCollection to be a lazy Collection from Doctrine (@jordisala1991)
  • [#1564] Changed page context to sonata.page.block.breadcrumb used in src/Resources/views/layout.html.twig file (@eerison)
  • [#1559] Change frontend compilation system from Gulp to Webpack (@jordisala1991)
  • [#1559] Change final minified file to app.js and app.css (@jordisala1991)
  • [#1531] Change from xml configuration format to PHP, for the internal bundle configuration. (@jordisala1991)
  • [#1528] BlockAdmin and its childs now inject their required dependencies through __construct instead of set methods. (@jordisala1991)
  • [#1519] PageAdmin now injects its required dependencies through __construct instead of set methods. (@jordisala1991)
  • [#1513] Replace usage of Container as a dependency by the actual dependencies of services. (@jordisala1991)
  • [#1512] Adjust PageInterface, SnapshotInterface and SiteInterface to reflect all the methods available on the actual implementation. (@jordisala1991)
  • [#1510] Changed visibility for most protected properties / methods to private, since classes are final. (@jordisala1991)
  • [#1508] Changed from \DateTime to \DateTimeInterface on all the codebase. (@jordisala1991)
  • [#1436] PageExtension doesn't need InitRuntimeInterface anymore (@Hanmac)

Fixed

Removed

3.29.0 - 2022-09-08

Deprecated

  • [#1595] Deprecated assets option from sonata_page config file (@eerison)

3.28.0 - 2022-08-15

Deprecated

Fixed

  • [#1536] SnapshotManager Cleanup Query if there are no Snapshots to keep (@Hanmac)

3.27.0 - 2022-07-26

Added

Changed

  • [#1446] Updated SnapshotManger to use QueryBuilder instead of native SQL (@Hanmac)
  • [#1427] Make Cache dependency optional (@Hanmac)

Deprecated

  • [#1461] Deprecated DumpPageCommand::class (@eerison)
  • [#1461] Deprecated RenderBlockCommand::class (@eerison)
  • [#1459] Deprecated Mustache:class generator (@eerison)
  • [#1434] Deprecated CleanupSnapshotConsumer class (@eerison)
  • [#1434] Deprecated CleanupSnapshotsConsumer class (@eerison)
  • [#1434] Deprecated --mode option for sonata:page:cleanup-snapshots (@eerison)
  • [#1434] Deprecated --base-console option for sonata:page:cleanup-snapshots (@eerison)
  • [#1434] Deprecated --site=all option for sonata:page:cleanup-snapshots (@eerison)
  • [#1434] Deprecated --base-console option for sonata:page:create-snapshots (@eerison)
  • [#1434] Deprecated --site=all option for sonata:page:create-snapshots (@eerison)
  • [#1434] Deprecated --site=all option for sonata:page:update-core-routes (@eerison)
  • [#1434] Deprecated BaseCommand::class (@eerison)
  • [#1482] Deprecated target page code from src/Command/CloneSiteCommand.php (@eerison)
  • [#1482] Deprecated target page code from src/Entity/Transformer.php (@eerison)
  • [#1482] Deprecated src/Model/Page::target property (@eerison)
  • [#1482] Deprecated src/Model/Page::getTarget() method (@eerison)
  • [#1482] Deprecated src/Model/Page::setTarget() method (@eerison)
  • [#1482] Deprecated src/Model/PageInterface::getTarget() method (@eerison)
  • [#1482] Deprecated src/Model/PageInterface::setTarget() method (@eerison)
  • [#1482] Deprecated src/Model/Snapshot::target property (@eerison)
  • [#1482] Deprecated src/Model/Snapshot::targetId property (@eerison)
  • [#1482] Deprecated src/Model/Snapshot::getTarget() method (@eerison)
  • [#1482] Deprecated src/Model/Snapshot::setTarget() method (@eerison)
  • [#1482] Deprecated src/Model/Snapshot::getTargetId() method (@eerison)
  • [#1482] Deprecated src/Model/Snapshot::setTargetId() method (@eerison)
  • [#1482] Deprecated src/Model/SnapshotPageProxy::target property (@eerison)
  • [#1482] Deprecated src/Model/SnapshotPageProxy::getTargetId() method (@eerison)
  • [#1482] Deprecated src/Model/SnapshotPageProxy::setTargetId() method (@eerison)
  • [#1482] Deprecated src/Page/PageServiceManager::createResponse() method (@eerison)
  • [#1476] Deprecated the command MigrateToJsonTypeCommand::class (@eerison)
  • [#1476] Deprecated the command MigrateBlockNameSettingCommand::class (@eerison)
  • [#1435] Deprecated BlockEsiCache, BlockJsCache and BlockSsiCache. (@Hanmac)
  • [#1418] Deprecated async mode in CreateSnapshotsCommand (@eerison)
  • [#1418] Deprecated sonata.notification.backend code into SiteAdminController (@eerison)
  • [#1418] Deprecated sonata.notification.backend code into PageAdminController (@eerison)
  • [#1418] Deprecated sendMessage and $backend property into the CreateSnapshotAdminExtension (@eerison)

Removed

  • [#1429] Remove symfony/debug dependency as it is deprecated. (@Hanmac)

3.26.0 - 2021-12-28

Added

  • [#1392] Add SnapshotInterface::getId() method (@core23)
  • [#1369] Added Sonata\BlockBundle\Model\BlockManagerInterface (@core23)

Changed

Deprecated

  • [#1369] Deprecated Sonata\BlockBundle\Model\BlockManagerInterface usage (@core23)

3.25.0 - 2021-12-04

Added

3.24.0 - 2021-11-06

Deprecated

  • [#1365] Deprecated ReST API with FOSRest, Nelmio Api Docs and JMS Serializer. (@wbloszyk)

Fixed

3.23.0 - 2021-08-22

Added

Changed

Removed

3.22.3 - 2021-07-15

Fixed

3.22.2 - 2021-05-26

Fixed

  • [#1310] Fixed creating sonata_page_admin twig variable only when SonataAdminBundle is loaded. (@franmomu)

3.22.1 - 2021-05-18

Fixed

  • [#1305] Do not load api_form.xml if JMSSerializerBundle is not installed (@4c0n)
  • [#1306] Added missing Dutch translation value. (@4c0n)

3.22.0 - 2021-04-19

Added

  • [#1293] Added CreateSnapshotAdminExtension::postRemove() method in order to create a snapshot when a block is deleted. (@gremo)
  • [#1297] Added sonata_page_admin Twig global variable which holds sonata.page.admin.page service (@franmomu)

Fixed

  • [#1296] Fixed using deprecated Twig tags (@franmomu)
  • [#1296] Fixed references to deprecated sonata.core.slugify.cocur and changed them to sonata.page.slugify.cocur (@franmomu)
  • [#1295] Fixed deprecations using commands because of not returning int (@franmomu)

Removed

  • [#1297] Removed deprecations from sonata-project/admin-bundle using sonata_admin Twig global variable (@franmomu)
  • [#1284] Remove admin deprecations (@core23)

3.21.1 - 2021-03-21

Fixed

  • [#1283] Catch null errors when accessing request (@core23)
  • [#1283] Catch null errors when loading unknown block (@core23)

3.21.0 - 2021-02-15

Added

  • [#1250] Added support for doctrine/persistence 2 (@core23)

Changed

3.20.0 - 2020-12-05

Added

Changed

  • [#1209] Replace mentions of 'whitelist' with 'allowlist' (@jlt10)

Fixed

  • [#1242] Newly created snapshot does not effect on all previous snapshots end dates only the last one (@haivala)

3.19.0 - 2020-09-04

Added

  • [#1175] Support for "friendsofsymfony/rest-bundle:^3.0" (@wbloszyk)
  • [#1173] Added public alias Sonata\PageBundle\Controller\Api\BlockController for sonata.page.controller.api.block service (@wbloszyk)
  • [#1173] Added public alias Sonata\PageBundle\Controller\Api\PageController for sonata.page.controller.api.page service (@wbloszyk)
  • [#1173] Added public alias Sonata\PageBundle\Controller\Api\SiteController for sonata.page.controller.api.site service (@wbloszyk)
  • [#1173] Added public alias Sonata\PageBundle\Controller\Api\SnapshotController for sonata.page.controller.api.snapshot service (@wbloszyk)

Change

  • [#1175] Support for deprecated "rest" routing type in favor for xml (@wbloszyk)

Changed

  • [#1162] SonataEasyExtendsBundle is now optional, using SonataDoctrineBundle is preferred (@jordisala1991)

Deprecated

Fixed

  • [#1195] Fixed support for string model identifiers at Open API definitions (@wbloszyk)
  • [#1173] Fix RestFul API - Class could not be determined for Controller identified Error (@wbloszyk)
  • [#1170] Fix Twig\Extra\String\StringExtension optional auto-registration to avoid duplication twig.extension service (@wbloszyk)

Removed

  • [#1195] Removed requirements that were only allowing integers for model identifiers at Open API definitions (@wbloszyk)

3.18.0 - 2020-06-29

Added

Changed

Fixed

Removed

3.17.3 - 2020-06-22

Fixed

Removed

3.17.2 - 2020-05-20

Fixed

  • fixed sql to work with mssql
  • Fix switch parent

3.17.1 - 2020-05-08

Fixed

  • Truncate texts in page composer
  • Fix invalid html in page block
  • Ignore subrequests in SiteSelector

3.17.0 - 2020-05-01

Fixed

  • Catch possible null error when retriving site
  • Redirecting after batch snapshot
  • Missing var type declaration

Removed

  • Support for Symfony < 4.3

3.16.0 - 2020-03-25

Changed

  • Removed underscores in page names when calling sonata:page:update-core-route

Removed

  • Dependency on cocur/slugify

3.15.1 - 2020-03-14

Fixed

  • Fix page actions for symfony 4

3.15.0 - 2020-01-27

Changed

  • Re-allow SF DI>4.4.0
  • Upgrade matthiasnoback/symfony-dependency-injection-test to ^4.0

3.14.0 - 2020-01-12

Changed

  • BlockInteractor constructor's argument $registry is now an instance of Doctrine\Persistence\ManagerRegistry
  • Transformer constructor's argument $registry is now an instance of Doctrine\Persistence\ManagerRegistry

Fixed

  • deprecations from doctrine/persistence

3.13.0 - 2019-10-21

Added

  • Add missing translation for admin menu
  • Added missing translation for blocks
  • Add more @method annotation to propagate new methods of SnapshotManagerInterface

Fixed

  • Fixed DecoratorStrategy compatibility with symfony/http-foundation >= 3.4.31
  • Match PHPDoc with doctrine model

Changed

  • Add internal as default context for technical blocks
  • Use correct translation domain for page blocks

Removed

  • Remove translation call for empty block descriptions
  • Remove superfluous PHPDoc

3.12.0 - 2019-10-03

Added

  • Added missing German translation
  • Added support for new EditableBlockService

Changed

  • Match PHPDoc with doctrine model
  • Increased block type length to 255 chars

Removed

  • Removed superfluous PHPDoc
  • Removed routing deprecations

3.11.1 - 2019-05-28

Fixed

  • compare with a different value type in the treeAction
  • Fixed missing macro call in breadcrumb.html.twig

3.11.0 - 2019-14-17

Added

  • Add |trans() to child.name|default(service.name) in compose_preview.html.twig

Changed

  • Translate page name in breadcrumb if no title is defined

Fixed

  • Use page title in breadcrumbs
  • Creating homepage from router config (check if page available in config - we will not create default Homepage).

3.10.0 - 2018-10-18

Removed

  • Removed CoreBundle deprecations
  • support for php 5 and php 7.0

3.9.1 - 2018-11-04

Added

  • Added group icon to admin pages

Fixed

  • Catch empty locale in exception listener
  • Make sonata.page.kernel.exception_listener service public

Security

  • Hide debug information in prod environment

3.9.0 - 2018-06-18

Changed

  • Auto-register datepicker form theme
  • Force use breadcrumb translation strings for page admins

Fixed

  • Removed default value for parent association mappings
  • addChild deprecations
  • Only blocks with getBlockMetadata method will be shown in "add block of type" menu of Page Composer

Added

  • Added support for latest sonata-project/cache

3.8.0 - 2018-02-23

Added

  • added block title translation domain option
  • added block icon option
  • added block class option
  • Added auto-registration sonata.page.router to cmf_routing.router service

Changed

  • Switch all templates references to Twig namespaced syntax
  • Switch from templating service to sonata.templating
  • Remove default template from exception list
  • Use default template in page create template
  • Added styling to page create button
  • Allow Slugify ^3.0

Fixed

  • Replaced service names for field types by classnames.
  • Commands not working on symfony4
  • sonata.page.site.selector is public
  • forward-compatibility with strict mode

Removed

  • Removed default title from blocks
  • Removed old sonata- classes from templates
  • Removed compatibility with older versions of FOSRestBundle (<2.1)

3.7.1 - 2018-01-07

Changed

  • The internal page name is not used as a seo title fallback anymore
  • make services explicit public

Fixed

  • Fix for getRuntime on Symfony older than 3.4
  • Fixed missing import
  • Lowered page request listener to make sure it's triggered behind the firewall listener
  • Fixed template choices in BlockAdmin

3.7.0 - 2017-12-12

Added

  • Added Russian translations
  • Add Symfony 4 compatibility
  • Added new configuration skip_redirection to skip asking Editor to redirect

Changed

  • make services explicit public

Fixed

  • compatibility with Twig 2.0 was improved
  • Fixed wrong route in pagelist block

Removed

  • Removed old form alias usage

3.6.0 - 2017-11-14

Fixed

  • use new sf3 choices structure
  • Pass form data instead of request object to form::submit
  • Not working SEO page title
  • read_only error for site selection in page admin
  • Renamed internal method to fix sf2.8 incompatibility
  • Fixed passing snapshot factory as wrong argument to Sonata\PageBundle\Entity\SnapshotManager
  • Unused no-confirmation option for site create command

Removed

  • support for old versions of php and Symfony
  • Removed php5 version checks

3.5.2 - 2017-09-14

Changed

  • Changed fallback translation domain to SonataBlockBundle in page composer

Fixed

  • Batch blocks removing doesn't mark page as edited
  • Composer (JS): Relying of custom status-property; instead rely on Response Status Code
  • use configureSettings instead of deprecated setDefaultSettings
  • compatibility with Twig 2.0 was improved
  • _self returns the template path instead of the template object
  • Twig runtime error on Symfony < 3.2 and Twig 2.x
  • Don't call Extension::addClassesToCompile() on php versions greater than 7

3.5.1 - 2017-07-05

Fixed

  • use FQCN for Symfony 3 for type in PageAdmin
  • parent page select input no longer has flipped choices
  • crash when running sonata:page:clone-site
  • form typess are referenced by FQCN and not by name, which is no longer supported

3.5.0 - 2017-06-05

Added

  • added support for FOSRestBundle:2.0
  • Added Italian translations

Fixed

  • Rendering failure when block.page property does not exist.
  • Fixed hardcoded paths to classes in .xml.skeleton files of config
  • Compatibility with Symfony 3 was fixed
  • A deprecation warning regarding the usage of factories in the DIC was fixed
  • deprecation warning about scope attributes
  • deprecation error message about addViolationAt
  • added support for both QuestionHelper and DialogHelper in CreateSiteCommand for Symfony 2.3 and 3.x compatibility
  • fixed token manager compatibility in PageAdminController
  • fixed the syntax change necessary for question helper as opposed to dialog helper

3.4.1 - 2017-04-04

Deprecated

  • Removed block service deprecation

Fixed

  • use is not null instead of is defined in Block/block_base.html.twig

3.4.0 - 2017-03-16

Added

  • Added --clean option to sonata:page:update-core-routes command to remove orphaned pages

Fixed

  • Configuration regex for ignore_route_patterns and ignore_uri_patterns nodes
  • ISO 639 compatibility, Site::$locale, now has length set as 7 instead of 6.
  • Add relative path to the "view page" link in the PageAdmin
  • deprecated usage of the logger
  • deprecated usage configureSideMenu

Changed

  • CmsManagerSelector now uses the PageAdmin::isGranted method to check for EDIT
  • Route name from admin_sonata_page_page_create to method sonata_admin.url().
  • Sonata\PageBundle\Admin\PageAdmin, added method getPersistentParameters
  • use font awesome icon instead of famfamfam icon in select_site.html.twig

Deprecated

  • Deprecated unused --all option in sonata:page:update-core-routes command
  • Removed deprecation for security.context

3.3.0 - 2017-01-17

Added

  • Added new sonata:page:clone command
  • Added SiteRequestContextInterface to check the current context type in get SiteRequestContext
  • Added SiteRequestContext::setSite() to change the site context
  • Added SiteRequestContext::getSite() to get the site context

Changed

  • Changed CmsPageRouter::generateFromPage to change the site context when generating the url for the given page

Fixed

  • Failed to create object: AppBundle\Entity\Site
  • NotNull constraint on Page instead of Site
  • Fixed inherits_containers feature Subject
  • Missing blockId setting SharedBlockBlockService
  • Use the correct protocol for urls
  • The page title won't get overwritten anymore

3.2.0 - 2016-09-20

Added

  • Added new command to create block container for all pages
  • Added new SnapshotPageFactory

Changed

  • UniqueUrl validation isn't checked for Dynamic pages anymore
  • UniqueUrlValidator is now more specific with the error, and the error is attached to a field

Fixed

  • trigger_error for deprecated sonata.core.slugify.native
  • Removed deprecation warning for Admin usage.
  • Removed deprecation warning for AdminExtension usage.
  • Fixed duplicate translation in tab menu
  • Fixed duplicate translation of batch actions
  • make sure the scope in the container is clean to avoid failing test while unit testing the command
  • Fixed deprecated doctrine methods
  • top menu items not translated for the compose action
  • add missing title in the compose action.
  • Top menu links for edit/compose action are now highlighted.
  • Custom query parameters are no longer lost on redirect.

Removed

  • The beta tag onto the Composer functionality

3.1.0 - 2016-08-01

Fixed

  • Warmup the cache from the CLI brings an error in HTTP
  • Fixed PHP Fatal error: Call to a member function getRelativePath() on null

Removed

  • Internal test classes are now excluded from the autoloader

3.0.2 - 2016-06-21

Added

  • Support version 2.x for cocur/slugify dependency

Fixed

  • Typo with \RuntimeException usage
  • Fix missing $transformer property in SnapshotPageProxy
  • Service definition sonata.page.admin.page not exists error if admin-bundle is not present

3.0.1 - 2016-06-13

Fixed

  • Fixed missing null check when rendering tree view without any site
  • The page name is now correctly used as a page title fallback

Removed

  • Removed never implemented sonata_page_url twig function