-
-
Notifications
You must be signed in to change notification settings - Fork 504
[symfony/ux-translator] Add recipe #1185
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
[symfony/ux-translator] Add recipe #1185
Conversation
|
Thanks for the PR 😍 How to test these changes in your application
Diff between recipe versionsIn order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. |
Head branch was pushed to by a user without write access
e301e68 to
ba9601b
Compare
Head branch was pushed to by a user without write access
ba9601b to
5a8ac44
Compare
Head branch was pushed to by a user without write access
5a8ac44 to
93f0828
Compare
Head branch was pushed to by a user without write access
93f0828 to
2154e8b
Compare
Head branch was pushed to by a user without write access
2154e8b to
45edbd1
Compare
Head branch was pushed to by a user without write access
45edbd1 to
40e4653
Compare
…Kocal) This PR was merged into the 2.x branch. Discussion ---------- [Translator] Prefix bundle and extension classes with "Ux" | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Tickets | 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 short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Features and deprecations must be submitted against branch main. --> While installing the package for the demo page, I've got the following issue: > There is no extension able to load the configuration for "ux_translator" (in "/Users/kocal/workspace-os/symfony-ux/ux.symfony.com/config/packages/ux_translator.yaml"). Looked for namespace "ux_ translator", found ""framework", "twig", "twig_extra", "webpack_encore", "turbo", "mercure", "web_profiler", "monolog", "debug", "twig_component", "live_component", "chartjs", "cropperjs", "laz y_image", "dropzone", "doctrine", "doctrine_migrations", "maker", "babdev_pagerfanta", "autocomplete", "notify", "react", "vue", "svelte", "translator"" in /Users/kocal/workspace-os/symfony-ux/ ux.symfony.com/config/packages/ux_translator.yaml (which is being imported from "/Users/kocal/workspace-os/symfony-ux/ux.symfony.com/src/Kernel.php"). <img width="1789" alt="image" src="https://user-images.githubusercontent.com/2103975/234497995-550ce874-8445-4dcf-a9bf-5368797be699.png"> (you can also see it in the recipe PR symfony/recipes#1185) Indeed, I've used `ux_translator` for the `TreeBuilder`'s name and not `translator` (to prevent misundersting with Symfony's Translator PHP version), but the related Bundle and Extension classes were not named correctly. After the fix, the bundle is correctly loaded: <img width="1486" alt="image" src="https://user-images.githubusercontent.com/2103975/234498103-f791c0e8-0da2-4867-a3cd-65018774cee4.png"> Commits ------- fb19c14 [Translator] Prefix bundle and extension classes with "Ux"
Adding the Symfony recipe for symfony/ux#616, which is still being reviewed ATM.