mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #19449 from nextcloud/allow-to-force-path-on-cache-event
Allow to overwrite the path on the cache event
This commit is contained in:
commit
c3a4dd4bc0
2 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue