Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use container in compiler passes
By manually constructing the `TypeGenerator` in `TypeGeneratorPass` we gain performance benefits because we don't have the boot the whole container while we are in fact compiling the container. The container should not be used in compiler passes: > As a rule, only work with services definition in a compiler pass and do not create service instances. In practice, this means using the methods has(), findDefinition(), getDefinition(), setDefinition(), etc. instead of get(), set(), etc. Fixes 899
- Loading branch information
Showing
1 changed file
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters