This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/DependencyInjection/Loader
Fabien Potencier f583291cea bug #22621 [Config] Fix resource tracking with new GlobResource (nicolas-grekas)
This PR was merged into the 3.3-dev branch.

Discussion
----------

[Config] Fix resource tracking with new GlobResource

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Right now, resource tracking is done via tracking of directories mtimes, which means a container is rebuilt each time a file is either removed or added, but not when an existing file is modified.
This looks nice on the surface.
BUT.
Most code editors do create a temporary file when you open your code, thus change the parent dir mtime, thus trigger a container rebuild.
When working with PSR-4 loaders, this means each time you just open a file, most of you will trigger a container rebuild.
This is bad :(

Here is a new GlobResource to fix this issue.

Commits
-------

9190e108c1 [Config] Fix resource tracking with new GlobResource
2017-05-03 12:38:16 -07:00
..
schema/dic/services Making tags under _defaults always apply and removing inherit_tags entirely 2017-05-01 09:36:02 -04:00
ClosureLoader.php [DependencyInjection] fix phpDoc 2016-04-11 16:45:49 +02:00
DirectoryLoader.php [Config][DI] Add ComposerResource to track runtime + vendors 2017-02-07 15:42:58 +01:00
FileLoader.php [Config] Fix resource tracking with new GlobResource 2017-05-03 15:21:08 +02:00
IniFileLoader.php [Config][DI] Add ComposerResource to track runtime + vendors 2017-02-07 15:42:58 +01:00
PhpFileLoader.php [Config][DI] Add ComposerResource to track runtime + vendors 2017-02-07 15:42:58 +01:00
XmlFileLoader.php [DI] Defaults to public=false in all service config files 2017-05-03 19:24:51 +02:00
YamlFileLoader.php [DI] Defaults to public=false in all service config files 2017-05-03 19:24:51 +02:00