Skip to content

How can we update the TurboStreamListenerRenderer configuration? #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Fan2Shrek opened this issue Feb 27, 2025 · 3 comments
Open

How can we update the TurboStreamListenerRenderer configuration? #94

Fan2Shrek opened this issue Feb 27, 2025 · 3 comments

Comments

@Fan2Shrek
Copy link

While working on symfony/ux#2447 @smnandre and I saw that the TurboStreamListenRenderer service is configured in this line. Today, we need to change the configuration. How can we handle this?

See symfony/ux#2447 (comment)

@dunglas
Copy link
Member

dunglas commented Feb 27, 2025

I don't remember why this registration has been done here, but I also agree that it should be done in Symfony UX.

Maybe could we register it in your PR and update the code here to register it only if it doesn't exist for BC?

@Fan2Shrek
Copy link
Author

Stupid question, but isn't this related to the fact that TurboStreamListenRenderer and Broadcaster are per hub?

If so, what should be done?

@dunglas
Copy link
Member

dunglas commented Feb 28, 2025

This should be possible to register them per hub in a compiler pass executing after the Mercure bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants