Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 2.38 KB

UPGRADE-5.4.md

File metadata and controls

35 lines (25 loc) · 2.38 KB

UPGRADE FROM 5.3 to 5.4

General

  • All Twig extension are marked as final.

AdminBundle

  • The composer script class Kunstmaan\AdminBundle\Composer\ScriptHandler is deprecated and will be removed in 6.0. If you use this script handler, remove it from your composer.json scripts section.
  • We don't enable the templating component by default anymore. If you use the templating component or the @templating service, activate it by enabling the framework.templating config in your project.
  • The \Kunstmaan\AdminBundle\FlashMessages\FlashTypes::ERROR constant is deprecated and will be removed in 6.0. Use \Kunstmaan\AdminBundle\FlashMessages\FlashTypes::DANGER instead.
  • Passing the container as the first argument of "Kunstmaan\AdminBundle\Helper\Menu\MenuBuilder" is deprecated in 5.4 and will be removed in 6.0. Inject the "request_stack" service instead.
  • Passing the container as the first argument of "Kunstmaan\AdminBundle\Helper\UserProcessor" is deprecated in 5.4 and will be removed in 6.0. Inject the "security.token_storage" service instead.

AdminListBundle

  • Not passing the Twig service as the first argument of "Kunstmaan\AdminListBundle\Service\ExportService::__construct" is deprecated and will be required in 6.0. Injected the required services in the constructor instead.
  • Injecting the template renderer with "Kunstmaan\AdminListBundle\Service\ExportService::setRenderer" is deprecated and will be removed in 6.0. Inject Twig with constructor injection instead.
  • Injecting the translator with "Kunstmaan\AdminListBundle\Service\ExportService::setTranslator" is deprecated and will be removed in 6.0. Inject the Translator with constructor injection instead.

ConfigBundle

  • Passing the "@templating" service as the 2nd argument to "Kunstmaan\ConfigBundle\Controller\ConfigController" is deprecated and will be replaced by the Twig service in 6.0. Injected the "@twig" service instead.

FormBundle

  • Passing the "@templating" service as the 2nd argument to "Kunstmaan\FormBundle\Helper\FormMailer" is deprecated and will be replaced by the Twig service in 6.0. Injected the "@twig" service instead.
  • Passing the "@container" service as the 3th argument to "Kunstmaan\FormBundle\Helper\FormMailer" is deprecated and will be replaced by the requeststack service in 6.0. Injected the "@request_stack" service instead.