mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Improve deprecation notices for new template events system
This commit is contained in:
parent
d284fc7f41
commit
41a06d0423
2 changed files with 6 additions and 2 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue