8000 [Config] Add ReflectionClassResource · Issue #21079 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Config] Add ReflectionClassResource #21079
Closed
@nicolas-grekas

Description

@nicolas-grekas
Q A
Feature request? yes
RFC? yes
Symfony version 3.3

When one uses autowiring, the dumped container watches many source files through FileResource objects, thus watching the mtime of referenced files.
When one is working on a class and this class is autowired, one sufferes from a big DX penalty: the container is rebuild almost everytime the user refreshed its page.
We should enhance this.
The solution seems to be to create a ReflectionClassResource that not only tracks mtimes, but also all signature related reflection info of a given class (+parents), and compares a hash of this to return isFresh only when a change is detected there also.

Would someone like to give this a try?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0