Allow to overwrite the path on the cache event

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/19449/head
Joas Schilling 6 years ago
parent c34570faf8
commit dc050fb5e5
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 8
      lib/private/Files/Cache/AbstractCacheEvent.php
  2. 6
      lib/public/Files/Cache/ICacheEvent.php

@ -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…
Cancel
Save