aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Cache/IWatcher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Files/Cache/IWatcher.php')
-rw-r--r--lib/public/Files/Cache/IWatcher.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/Files/Cache/IWatcher.php b/lib/public/Files/Cache/IWatcher.php
index 75ab14f85c2..62b90f672c6 100644
--- a/lib/public/Files/Cache/IWatcher.php
+++ b/lib/public/Files/Cache/IWatcher.php
@@ -76,4 +76,10 @@ interface IWatcher {
* @since 9.0.0
*/
public function cleanFolder($path);
+
+ /**
+ * register a callback to be called whenever the watcher triggers and update
+ * @since 31.0.0
+ */
+ public function onUpdate(callable $callback): void;
}