Improve deprecation notices for new template events system

This commit is contained in:
Kamil Kokot 2019-12-17 14:16:08 +01:00
parent d284fc7f41
commit 41a06d0423
No known key found for this signature in database
GPG key ID: 7BD76F7054D93C89
2 changed files with 6 additions and 2 deletions

View file

@ -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:

View file

@ -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
);