Skip to content

Compile all referenced definitions #565

@mnapoli

Description

@mnapoli

From #564 (comment)

Looking at the generated container code, I can see if only contains definition for top-level classes (auto-wired). However, each all its dependencies are delegated to a regular resolving mechanism. Since in my case most of the underlying classes are also auto-wired, resolving seems to take a lot of time to parse annotations and typehints. This was kind of surprising to me: I expected the whole dependencies tree to be compiled.

The compiler could make a list of all definitions referenced (get() definitions) and compile those. That would solve partially #547 because almost all classes created by the container would be found and compiled.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions