Commit 6f2d142
committed
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
-------
2420b67660 [FrameworkBundle] Remove translation data_collector BEFORE adding it to profiler1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | | - | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments