Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #22376 [FrameworkBundle] Use findDefinition() instead of getDefin…
…ition() on aliases (chalasr) This PR was merged into the 3.3-dev branch. Discussion ---------- [FrameworkBundle] Use findDefinition() instead of getDefinition() on aliases | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a The services for which `has()` is called might be aliases at this point so `getDefinition()` gives an exception, I ran into by executing this pass but not the removing ones (skipping ReplaceAliasByActualDefinitionPass) while working on #16388. Let's make it safe to use independently. Commits ------- 41f3d1f Use findDefinition() instead of getDefinition() after calling has()
- Loading branch information