aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2020-02-21 17:45:25 +0100
committerGitHub <noreply@github.com>2020-02-21 17:45:25 +0100
commit3728ddd8a2f4b9b3eef5c360134119f65ecf25f0 (patch)
treecd20113016ec33ce370f73701482cdc7137f62ad
parent7181de9c964f5e0a0135f51ea13770d5e65bb4f9 (diff)
parent67fbacee5983fa8b0a2a6a0ef488b628f2bb070c (diff)
downloadnextcloud-server-3728ddd8a2f4b9b3eef5c360134119f65ecf25f0.tar.gz
nextcloud-server-3728ddd8a2f4b9b3eef5c360134119f65ecf25f0.zip
Merge pull request #19522 from nextcloud/backport/19449/stable18
[stable18] 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
*/