Skip to content

Latest commit

 

History

History
121 lines (92 loc) · 10.5 KB

UPGRADE-5.1.md

File metadata and controls

121 lines (92 loc) · 10.5 KB

UPGRADE FROM 5.0 to 5.1

General

  • The symfony/assetic-bundle package was removed from our dependencies as it was unused since version 5.0. If your code depends on assetic, add the dependency to your project composer.json.
  • The sensio/distribution-bundle package was removed from our dependencies as it was unused since version 5.0. If your code depends on sensio/distribution-bundle for executing composer after update/install scripts, add the dependency to your project composer.json.
  • The version constraint for fos/user-bundle is updated to ^2.0 to allow new minor releases. If your code isn't compatible with the new changes of the user-bundle, update/add a custom version constraint for the fos/user-bundle in your composer.json. Eg "friendsofsymfony/user-bundle": "2.0.*"

AdminBundle

  • Passing the logger service as the second argument in Kunstmaan\AdminBundle\Toolbar\BundleVersionDataCollector is deprecated and will be removed in 6.0.
  • Injecting the container in the DomainConfiguration is deprecated and will be removed in 6.0. Inject the required parameters instead.
  • CreateUserCommand::__construct(), CreateRoleCommand::__construct(), CreateGroupCommand::__construct() and ExceptionCommand::__construct() now take an instance of Doctrine\ORM\EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • CreateUserCommand::__construct(), CreateRoleCommand::__construct(), CreateGroupCommand::__construct() and ExceptionCommand::__construct() have been marked as final.
  • Injecting the container in the ApplyAclCommand is deprecated and will be removed in 6.0. Inject the required parameters instead.
  • Injecting the container in the UpdateAclCommand is deprecated and will be removed in 6.0. Inject the required parameters instead.

AdminListBundle

  • Getting services directly from the container in list controllers is deprecated and will be removed in 6.0. Register your controllers as services and inject the necessary dependencies.
  • Getting parameters directly from the container in list controllers is deprecated and will be removed in 6.0. Register your controllers as services and inject the necessary parameters.

ArticleBundle

  • Passing the request_stack service as the third argument in Kunstmaan\ArticleBundle\Twig\ArticleTwigExtension is deprecated and will be removed in 6.0.
  • The getAdminListConfigurator and createAdminListConfigurator method in the AbstractArticleEntityAdminListController class will change from public to protected visibility in 6.0.
  • Instantiating the AbstractAuthor, AbstractCategory, AbstractTag entities without extending is deprecated and these classes will be made abstract in 6.0. Extend your implementation from this class instead.

ConfigBundle

  • Passing the container as the sixth argument in Kunstmaan\ConfigBundle\Controller\ConfigController is deprecated in and will be removed in 6.0.

DashboardBundle

  • DashboardCommand::__construct() now takes an instance of WidgetManager as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • GoogleAnalyticsConfigFlushCommand::__construct() now takes an instance of EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • GoogleAnalyticsConfigsListCommand::__construct() now takes an instance of EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • GoogleAnalyticsDataCollectCommand::__construct() now takes an instance of EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • GoogleAnalyticsDataFlushCommand::__construct() now takes an instance of EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • GoogleAnalyticsOverviewsGenerateCommand::__construct() now takes an instance of EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • GoogleAnalyticsOverviewsListCommand::__construct() now takes an instance of EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • GoogleAnalyticsSegmentsListCommand::__construct() now takes an instance of EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.

FormBundle

  • Added the optional deletable_formsubmissions config parameter, when set to true, form submissions can be deleted from the adminlist.
    kunstmaan_form:
        deletable_formsubmissions: true

MediaBundle

  • The unused MediaController::moveMedia action is deprecated and will be removed in 6.0.
  • The BackgroundFilterLoader override is no longer necessary and will be removed in 6.0.
  • CleanDeletedMediaCommand::__construct() now takes an instance of Doctrine\ORM\EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • CreatePdfPreviewCommand::__construct() now takes an instance of Doctrine\ORM\EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • RebuildFolderTreeCommand::__construct() now takes an instance of Doctrine\ORM\EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • RenameSoftDeletedCommand::__construct() now takes an instance of Doctrine\ORM\EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • CleanDeletedMediaCommand, CreatePdfPreviewCommand, RebuildFolderTreeCommand and RenameSoftDeletedCommand have been marked as final.

MultiDomainBundle

  • Injecting the container in the DomainConfiguration is deprecated and will be removed in 6.0. Inject the required parameters instead.

NodeBundle

  • CronUpdateNodeCommand::__construct() now takes an instance of Doctrine\ORM\EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • InitAclCommand::__construct() now takes an instance of Doctrine\ORM\EntityManagerInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • CronUpdateNodeCommand and InitAclCommand have been marked as final.
  • Possibility to change the icon of your page.: The possibility already exists to change the icon in the sidebar tree of your page. This was already available by yml configuration. I've added a new interface, TreeIconInterface that can be implemented and that will return the icon that should be used.
  • The unused WidgetsController::selectNodesLazySearch action is deprecated and will be removed in 6.0.
  • Injecting the container in the SlugRouter is deprecated and will be removed in 6.0. Inject the required services instead.
  • The service method of Kunstmaan\NodeBundle\Entity\PageInterface is deprecated and will be removed in 6.0. Implement the Kunstmaan\NodeBundle\Controller\SlugActionInterface and use the getControllerAction method to specify a controller action with your custom page logic instead.
  • Button to export page template is now disabled by default. You can enable it by setting the enable_export_page_template value to true inside the kunstmaan_node configuration.
  • Injecting the TemplateEngine as the first argument in the RenderContextListener is deprecated and will be removed in 6.0. Remove the TemplateEngine as the first service argument.

SearchBundle

  • SetupIndexCommand::__construct(), PopulateIndexCommand::__construct() and DeleteIndexCommand::__construct() now takes an instance of Kunstmaan\SearchBundle\Configuration\SearchConfigurationChain as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • SetupIndexCommand, PopulateIndexCommand and DeleteIndexCommand have been marked as final.

SeoBundle

  • Getting services directly from the container in list controllers is deprecated and will be removed in 6.0. Register your controllers as services and inject the necessary dependencies.
  • Getting parameters directly from the container in list controllers is deprecated and will be removed in 6.0. Register your controllers as services and inject the necessary parameters.

TranslatorBundle

  • ExportTranslationsCommand::__construct() now takes an instance of Kunstmaan\TranslatorBundle\Service\Command\Exporter\ExportCommandHandler as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • ImportTranslationsCommand::__construct() now takes an instance of Kunstmaan\TranslatorBundle\Service\Command\Importer\ImportCommandHandler as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • TranslationCacheCommand::__construct() now takes an instance of Kunstmaan\TranslatorBundle\Service\Translator\ResourceCacher as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • TranslationFlagCommand::__construct() now takes an instance of Kunstmaan\TranslatorBundle\Repository\TranslationRepository as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • ExportTranslationsCommand, ImportTranslationsCommand, MigrationsDiffCommand, TranslationCacheCommand and TranslationFlagCommand have been marked as final.
  • The usedTranslations request parameter added by Kunstmaan\TranslatorBundle\Service\Translator\Translator is deprecated and will be removed in 6.0. Get the collected messages from the Kunstmaan\TranslatorBundle\Toolbar\DataCollectorTranslator service.

UserManagementBundle

  • Getting services directly from the container in list controllers is deprecated and will be removed in 6.0. Register your controllers as services and inject the necessary dependencies.
  • Getting parameters directly from the container in list controllers is deprecated and will be removed in 6.0. Register your controllers as services and inject the necessary parameters.

UtilitiesBundle

  • CipherCommand::__construct() now takes an instance of Kunstmaan\UtilitiesBundle\Helper\Cipher\CipherInterface as the first argument. Not passing it is deprecated and will throw a TypeError in 6.0.
  • CipherCommand has been marked as final.