Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xabbuh commentedApr 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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
notrix commentedApr 18, 2019
👍 |
nicolas-grekas commentedApr 18, 2019
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
jsamouh commentedApr 18, 2019
Class string instead of ::class won’t be better ? |
stof commentedApr 18, 2019
@jsamouh no. The |
jsamouh commentedApr 18, 2019
thanks for the explanation |
…sts passing (pamil)This PR was merged into the 1.3 branch.Discussion----------Seesymfony/symfony#31152 andsymfony/symfony#31156.Commits-------dcb0bf0 Add a workaround for GridBundle & Symfony 4.2.7 to make tests passing
d42ohpaz commentedApr 23, 2019
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 tosymfony/symfony#31156
nCrazed commentedApr 24, 2019
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. |
snebes commentedApr 24, 2019
vincentchalamon commentedApr 26, 2019
What about using the |
xabbuh commentedApr 26, 2019
@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 brokensymfony/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