Open cavasinf opened 6 months ago
Concerning autodiscover / bundle component, i'll make you a general answer :)
It's somehting we worked on and.. paused (to release some LiveComponent fixes and UX Icons).
I'll work on it next week as i had an almost ready PR for all this, we "just" need to act some things regarding namespaces.
Stay tuned ? :)
Stay tuned ? :)
I'll ping you next week then 😉
Let me be the ping on that one. Can we help with a real world example? Do you have a working branch that we can help testing @smnandre ?
Nothing like that nope sorry…. But if you want, i can find 30mn during the week-end to centralize all the needs / hidden problems / things we want to préserve, etc
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
@smnandre has there been any progress on that topic? Having such a feature could improve the spreading of UX initiative, if we can publish components in bundles. We can help, but need some input on the how and where.
This now works for anonymous components: https://symfony.com/bundles/ux-twig-component/current/index.html#3rd-party-bundle
The goal is to convert every "twig macro component" into TwigComponent (https://github.com/kevinpapst/TablerBundle/issues/173) in TablerBundle.
As of today, there is no "best practice" or "how to" for implementing TwigComponent in bundles. With the multi namespace available, we can configure it like this:
twig
file in<your-bundle>/templates/components
be mounted as a Twig Component? In our case, we already have acomponents
folder that is NOT planned for Twig Component (this can be solved internally).2.
, can a bundle have "anonymous" components?Symfony\UX\TwigComponent\Attribute\AsTwigComponent
attribute and not mount them from "is there twig files intemplates/components
"