-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
[TwigComponent] Cva in html_extra #2070
Comments
We should be careful here since the
This first one takes a big array, where the second one takes advantage of Twig named arguments (and that's super nice! I prefer this syntax too), but, we should find a way to correctly handle the migration from UX to twig/html-extra for If twigphp/Twig#4006 is merged, it has no interest to keep CVA's code in UX and we will need to remove it, in a major version. If release a new major version is not wanted - which I agree because it will affect all other UX packages -, I think we can do it smoothly by:
Then, for a new major version, remove this deprecation layer and For the documentation, I believe we can do something like:
WDYT? |
I'm not in favor of requiring an external package (this would need twig-extra too) ... to deprecate one And that does not change the fact someone updating twig/extra-html will break its app, no ? Two functions cannot be registered with the same name i think. |
@WebMamba renamed the So indeed, next steps here:
|
@smnandre I'm not sure why you closed this issue, our |
This issue was to decide the "what to do" .. and we did .. but let's reopen if you prefer to keep a "todo" ! |
Ah, yes ok, it makes sense! |
…ersion (Kocal) This PR was merged into the 2.x branch. Discussion ---------- [Map] Adjust changelogs and fix `render_map` deprecated version | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> While working on #2070, I noticed Map's changelogs were still containing `Unreleased` instead of the version number. I've also changed the version where `render_map` twig function have been deprecated, to match the reality (the 2.20 will be the next release!). Commits ------- 06b248a [Map] Adjust changelogs and fix `render_map` deprecated version
It seems the cva function will be merged into twig/html-extra (see twigphp/Twig#4006)
How do we handle the transition ?
The text was updated successfully, but these errors were encountered: