If you use an annotation resource pointing to a controller directory in your routing configuration, only existing files in this directory get tracked for changes in this directory. So if you add a new controller file in this directory you'd have to manually clear the cache since the new file gets ignored. This patch adds a DirectoryResource for this case which tracks all changes in the given directory (and files and directories contained within).
If you use an annotation resource pointing to a controller directory in your routing configuration, only existing files in this directory get tracked for changes in this directory. So if you add a new controller file in this directory you'd have to manually clear the cache since the new file gets ignored. This patch adds a DirectoryResource for this case which tracks all changes in the given directory (and files and directories contained within).


symfony/Config