diff --git a/UPGRADE-1.7.md b/UPGRADE-1.7.md index 069d51e85a..afac2e9dca 100644 --- a/UPGRADE-1.7.md +++ b/UPGRADE-1.7.md @@ -22,7 +22,11 @@ Update your `package.json` in order to add `slick-carousel` : } ``` -# Breaking changes +## Template events + +- `Sylius\Bundle\UiBundle\Block\BlockEventListener` has been deprecated, use `sylius_ui` configuration instead. + +## Breaking changes Those are excluded from our BC promise: diff --git a/src/Sylius/Bundle/UiBundle/Block/BlockEventListener.php b/src/Sylius/Bundle/UiBundle/Block/BlockEventListener.php index 47cec6d656..06b7b47545 100644 --- a/src/Sylius/Bundle/UiBundle/Block/BlockEventListener.php +++ b/src/Sylius/Bundle/UiBundle/Block/BlockEventListener.php @@ -24,7 +24,7 @@ final class BlockEventListener public function __construct(string $template) { @trigger_error( - sprintf('Using "%s" to add blocks to the templates is deprecated since Sylius 1.7. Use "sylius_ui" configuration instead.', self::class), + sprintf('Using "%s" to add blocks to the templates is deprecated since Sylius 1.7 and will be removed in Sylius 2.0. Use "sylius_ui" configuration instead.', self::class), \E_USER_DEPRECATED );