aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-02-13 20:32:01 +0100
committerGitHub <noreply@github.com>2020-02-13 20:32:01 +0100
commitc3a4dd4bc0dd3c3b73b6637e063872d8cad20e34 (patch)
tree874ba183022648ac6e1db3e3425d7c4c4f81535c
parent584e729029ff4015740ae697d2b0652c3b7bde42 (diff)
parentdc050fb5e5b1ce294553c8905f409e03dca1b1aa (diff)
downloadnextcloud-server-c3a4dd4bc0dd3c3b73b6637e063872d8cad20e34.tar.gz
nextcloud-server-c3a4dd4bc0dd3c3b73b6637e063872d8cad20e34.zip
Merge pull request #19449 from nextcloud/allow-to-force-path-on-cache-event
Allow to overwrite the path on the cache event
-rw-r--r--lib/private/Files/Cache/AbstractCacheEvent.php8
-rw-r--r--lib/public/Files/Cache/ICacheEvent.php6
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/Files/Cache/AbstractCacheEvent.php b/lib/private/Files/Cache/AbstractCacheEvent.php
index 0fd03779009..741c06f3490 100644
--- a/lib/private/Files/Cache/AbstractCacheEvent.php
+++ b/lib/private/Files/Cache/AbstractCacheEvent.php
@@ -65,6 +65,14 @@ class AbstractCacheEvent extends Event implements ICacheEvent {
}
/**
+ * @param string $path
+ * @since 19.0.0
+ */
+ public function setPath(string $path): void {
+ $this->path = $path;
+ }
+
+ /**
* @return int
* @since 16.0.0
*/
diff --git a/lib/public/Files/Cache/ICacheEvent.php b/lib/public/Files/Cache/ICacheEvent.php
index c075d65564e..54ef15b0392 100644
--- a/lib/public/Files/Cache/ICacheEvent.php
+++ b/lib/public/Files/Cache/ICacheEvent.php
@@ -45,6 +45,12 @@ interface ICacheEvent {
public function getPath(): string;
/**
+ * @param string $path
+ * @since 19.0.0
+ */
+ public function setPath(string $path): void;
+
+ /**
* @return int
* @since 16.0.0
*/