Merge pull request #19522 from nextcloud/backport/19449/stable18

[stable18] Allow to overwrite the path on the cache event
This commit is contained in:
Christoph Wurst 2020-02-21 17:45:25 +01:00 committed by GitHub
commit 3728ddd8a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -64,6 +64,14 @@ class AbstractCacheEvent extends Event implements ICacheEvent {
return $this->path;
}
/**
* @param string $path
* @since 19.0.0
*/
public function setPath(string $path): void {
$this->path = $path;
}
/**
* @return int
* @since 16.0.0

View file

@ -44,6 +44,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