Commit a716163
committed
bug #54063 [FrameworkBundle] Fix registration of the bundle path to translation (FlyingDR)
This PR was merged into the 5.4 branch.
Discussion
----------
[FrameworkBundle] Fix registration of the bundle path to translation
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
31d7a09bf5c423ad2003d6863d7372e49a195af1 had a small issue resulting in a lack of proper registration of path to translation resources in installed bundles.
The issue is caused by the incomplete update of the code where the newly added `$transPaths` variable was not updated in all code branches ([1](https://github.com/symfony/symfony/blob/85d01657a1a1aa65f57d0e0077fc7a10466acdd8/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L1330), [2](https://github.com/symfony/symfony/blob/85d01657a1a1aa65f57d0e0077fc7a10466acdd8/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L1335), [3](https://github.com/symfony/symfony/blob/85d01657a1a1aa65f57d0e0077fc7a10466acdd8/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L1340), but not [4](https://github.com/symfony/symfony/blob/85d01657a1a1aa65f57d0e0077fc7a10466acdd8/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L1345))
The issue can be reproduced and tested like this:
```bash
composer create-project symfony/skeleton test
cd test
composer require easycorp/easyadmin-bundle
php bin/console debug:translation en --domain EasyAdminBundle
```
It will result in unexpected:
```
[WARNING] No defined or extracted messages for locale "en" and domain "EasyAdminBundle"
```
After applying the fix, clearing the cache and running the same command list of messages will be returned properly.
Commits
-------
ae9e07e3ae [FrameworkBundle] Fix registration of the bundle path to translation1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | | - | |
| 1345 | + | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
| |||
0 commit comments