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
feature symfony#18022 [DependencyInjection] Sort the CompilerPass by priority (Ener-Getick)
This PR was squashed before being merged into the 3.2-dev branch (closessymfony#18022).
Discussion
----------
[DependencyInjection] Sort the CompilerPass by priority
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | symfony#10778
| License | MIT
| Doc PR |
This PR replaces the CompilerPass types by a new priority argument.
Sometimes we want to be sure that a CompilerPass will be executed after another but we can't do that because we don't know when the other pass will be added.
This PR fixes this by allowing people to simply choose when their compiler passes will be executed.
Things to debate:
- the constants value
- should we create a new function to get/set passes for a specific priority ?
Commits
-------
d17c1a9 [DependencyInjection] Sort the CompilerPass by priority
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,11 @@
1
1
CHANGELOG
2
2
=========
3
3
4
+
3.2.0
5
+
-----
6
+
7
+
* allowed to prioritize compiler passes by introducing a third argument to `PassConfig::addPass()`, to `Compiler::addPass` and to `ContainerBuilder::addCompilerPass()`
0 commit comments