Skip to content

v2.0.0

Choose a tag to compare

@yosymfony yosymfony released this 12 May 22:41
· 14 commits to master since this release

What's new in this release?

  • [New] The class ResourceWatcher accepts two new arguments: the finder and class that makes the content hash.
  • [New] The class ResourceWatcher uses content hash instead of timestamps to detect changes.
  • [New] The method findChanges from the class ResourceWatcher returns an object type ResourceWatcherResult with all the information about the files changes.
  • [New] Added a new method initialize to the class ResourceWatcher. This method warms up the cache just in case.
  • [New] In the interface ResourceCacheInterface, the method getResources has been renamed to getAll.
  • [New] If the method enableRelativePathWithCache from the class ResourceWatcher is invoked,
    the resource cache will receive relative paths instead of absolute paths.
  • [Improved] The class ResourceCacheFile has been renamed to ResourceCachePhpFile to improve the readability.
  • [Improved] PhpUnit minimum version has been updated to 5.7.
  • [Delete] Deleted the method isSearching from the class ResourceWatcher.
  • [Delete] Deleted the method setFinder from the class ResourceWatcher.
    Now, the finder is passed as constructor argument.