[LiveComponent] Add support for live components in reusable bundles #3104
Unanswered
javiereguiluz
asked this question in
Questions & Answers
Replies: 2 comments 3 replies
-
I guess this is because services defined in reusable bundles are not autoconfigured by default and this configuration is added by autoconfiguration: // config/services.php
return static function (ContainerConfigurator $container) {
// ...
$services->set(ProductSearch::class)
// ...
->autoconfigure();
}; I did not test, just guessing. |
Beta Was this translation helpful? Give feedback.
3 replies
-
More explanation here: #3094 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Symfony UX doesn't officially support defining Live Components in reusable bundles (see #3064). However, if you add the following config for your live component, it works inside a bundle:
We don't want to promote this because it's a hack that could break at any moment because of Symfony UX changes. But, hopefully there's a way to make this work officially in some way to allow Live Components be distributable more easily in Symfony bundles.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions