You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #39350 [FrameworkBundle] Remove translation data_collector BEFORE adding it to profiler (l-vo)
This PR was merged into the 4.4 branch.
Discussion
----------
[FrameworkBundle] Remove translation data_collector BEFORE adding it to profiler
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR |
There is an order problem between `DataCollectorTranslatorPass` and `ProfilerPass`. Currently `DataCollectorTranslatorPass` is registered after `ProfilerPass`. So if `data_collector.translation` is removed, it has already been added to the profiler and the compilation fails.
The simplest approach seems to move `DataCollectorTranslatorPass` before `ProfilerPass`.
Use case: When I want to use `IdentityTranslator` (for the test environment for instance) which doesn't implement `TranslatorBagInterface`.
Commits
-------
2420b67 [FrameworkBundle] Remove translation data_collector BEFORE adding it to profiler
0 commit comments