-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] call method with Translator component only #31156
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
Conversation
xabbuh
commented
Apr 18, 2019
Q | A |
---|---|
Branch? | 4.2 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #31152 |
License | MIT |
Doc PR |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
👍 |
Thank you @xabbuh. |
…ly (xabbuh) This PR was merged into the 4.2 branch. Discussion ---------- [FrameworkBundle] call method with Translator component only | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31152 | License | MIT | Doc PR | Commits ------- f49881d call method with Translator component only
Class string instead of ::class won’t be better ? |
@jsamouh no. The |
thanks for the explanation |
…sts passing (pamil) This PR was merged into the 1.3 branch. Discussion ---------- See symfony/symfony#31152 and symfony/symfony#31156. Commits ------- dcb0bf0 Add a workaround for GridBundle & Symfony 4.2.7 to make tests passing
Another solution that would not require installing anything temporarily is to tell composer to avoid using 4.2.6 of the
This will force composer to downgrade/skip 4.2.7 and not produce any missing interface errors. |
* add parametrable prefix for resources descriptions endpoints * fix due to symfony/symfony#31156
Is there an ETA for this to be released? Considering that some of the recently discovered security problems (e.g. CVE-2019-10909) apply to all 4.2.* version prior to 4.2.7 effectively blocking the 4.1 to 4.2 upgrade. |
What about using the |
@vincentchalamon But in that case you do not have the need to use the |
* allow typed embedded relation with hateoas 3.0 * symfony/framework-bundle 4.2.7 is broken symfony/symfony#31156 * internal public methods
… (alcaeus) This PR was merged into the 3.4 branch. Discussion ---------- Ignore missing translation dependency in FrameworkBundle | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This applies the fix from #31156 to the validator.xml file. The error came up a couple of times in the test suite for DoctrineBundle. When using `symfony/framework-bundle` with `symfony/validator` installed but without `symfony/translation`, the call to `setTranslator` will error out because of the missing `translator` service. Thus, the call to `setTranslator` needs to ignore a missing translator dependency to support this scenario. I don't know how to best test this since the translation component is present in the `require-dev` directive of FrameworkBundle's `composer.json`. If you have any suggestions how to achieve this, please let me know. Commits ------- 19eb90d Ignore missing translation dependency in FrameworkBundle