You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #387 [Turbo] Make the Broadcast attribute repeatable (dunglas)
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
[Turbo] Make the Broadcast attribute repeatable
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| Tickets | n/a
| License | MIT
Allow the `Broadcast` attribute to be used many times.
This is convenient to update different pages (ex: the list and the detail page) containing the same data but rendered differently.
Ex:
```php
#[Broadcast(topics: '@="product-detail-" ~ entity.id', template: 'product-detail.stream.html.twig']
#[Broadcast(topics: '@="product-list-" ~ entity.id', template: 'product-list.stream.html.twig']
class Product
{
public string $id;
}
```
Commits
-------
298229e [Turbo] Make the Broadcast attribute repeatable
0 commit comments