v2.0.0
What's new in this release?
- [New] The class
ResourceWatcheraccepts two new arguments: the finder and class that makes the content hash. - [New] The class
ResourceWatcheruses content hash instead of timestamps to detect changes. - [New] The method
findChangesfrom the classResourceWatcherreturns an object typeResourceWatcherResultwith all the information about the files changes. - [New] Added a new method
initializeto the classResourceWatcher. This method warms up the cache just in case. - [New] In the interface
ResourceCacheInterface, the methodgetResourceshas been renamed togetAll. - [New] If the method
enableRelativePathWithCachefrom the classResourceWatcheris invoked,
the resource cache will receive relative paths instead of absolute paths. - [Improved] The class
ResourceCacheFilehas been renamed toResourceCachePhpFileto improve the readability. - [Improved] PhpUnit minimum version has been updated to 5.7.
- [Delete] Deleted the method
isSearchingfrom the classResourceWatcher. - [Delete] Deleted the method
setFinderfrom the classResourceWatcher.
Now, the finder is passed as constructor argument.