Closed
Description
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?