diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-03 12:30:10 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-09-09 22:56:04 +0200 |
commit | 20901c59d47e74179a04ca7938afe1ff131f6576 (patch) | |
tree | 3309daca1bd4708d005a610f57e571db6996f4c5 /lib/private/Files/Node/File.php | |
parent | 0d7f7e5495a56f776e8593e1b6ba80da9e8c0dbd (diff) | |
download | nextcloud-server-20901c59d47e74179a04ca7938afe1ff131f6576.tar.gz nextcloud-server-20901c59d47e74179a04ca7938afe1ff131f6576.zip |
emit file events via Dispatcher, too
another step to get rid of hooks and emitters
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Files/Node/File.php')
-rw-r--r-- | lib/private/Files/Node/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Node/File.php b/lib/private/Files/Node/File.php index a3eabbcc446..b504c7a29da 100644 --- a/lib/private/Files/Node/File.php +++ b/lib/private/Files/Node/File.php @@ -119,7 +119,7 @@ class File extends Node implements \OCP\Files\File { $fileInfo = $this->getFileInfo(); $this->view->unlink($this->path); $nonExisting = new NonExistingFile($this->root, $this->view, $this->path, $fileInfo); - $this->root->emit('\OC\Files', 'postDelete', array($nonExisting)); + $this->sendHooks(['postDelete'], [$nonExisting]); $this->exists = false; $this->fileInfo = null; } else { |