[go: up one dir, main page]

Skip to content

Tags: yosymfony/resource-watcher

Tags

v3.0.0

Toggle v3.0.0's commit message
What's new in this release?

[New] A new hashing class has been added Crc32MetaDataHash. It let you work with large files as the hash is calculated using metadata of files: filename, size, mtime and mode. (Thanks to @pecuchet. See PR #9).
[New] The interface ContentHashInterface has been renamed to HashInterface. Now, the method hash receives a filename instead of the filename content.

v2.0.1

Toggle v2.0.1's commit message
* [New] Support for Symfony 5. (Thanks to seregazhuk. See PR #8).

* [Fix] Fixed an error calculating the hash of a directory in PHP 7.4.

v2.0.0

Toggle v2.0.0's commit message
What's new in this release?

* [New] The class `ResourceWatcher` accepts two new arguments: the finder and class that makes content hash.
* [New] The class `ResourceWatcher` uses content hash instead of dates to detect changes.
* [New] The method `findChanges` from the class `ResourceWatcher` returns an object type `ResourceWatcherResult` with all the information about files changes.
* [New] Added a new method `initialize` to the class  `ResourceWatcher`. This method warm 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.

v1.3.0

Toggle v1.3.0's commit message
What's new in this release?

* Support for Symfony 4.

v1.2.0

Toggle v1.2.0's commit message
What's new in this release?

* Dropped the support for PHP 5.4.
* Added support for Symfony 3

v1.1.0

Toggle v1.1.0's commit message
What's new in this release?

* [New] Added PHP 7 for testing on Travis CI.
* [Improved] Updated to Symfony 2.7.

v1.0.0

Toggle v1.0.0's commit message
Initial version