From: Georg Ehrke Date: Tue, 21 Apr 2020 08:19:06 +0000 (+0200) Subject: Fix usages of afterMethod -> afterMethod:* X-Git-Tag: v19.0.0beta5~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F20577%2Fhead;p=nextcloud-server.git Fix usages of afterMethod -> afterMethod:* Signed-off-by: Georg Ehrke --- diff --git a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php index b693b50f8e3..63e57735972 100644 --- a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php +++ b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php @@ -75,7 +75,7 @@ class AnonymousOptionsPlugin extends ServerPlugin { // setup a fake tree for anonymous access $this->server->tree = new Tree(new Directory('')); $corePlugin->httpOptions($request, $response); - $this->server->emit('afterMethod', [$request, $response]); + $this->server->emit('afterMethod:*', [$request, $response]); $this->server->emit('afterMethod:OPTIONS', [$request, $response]); $this->server->sapi->sendResponse($response); diff --git a/apps/dav/lib/Connector/Sabre/LockPlugin.php b/apps/dav/lib/Connector/Sabre/LockPlugin.php index a8e3818c5c9..7c07f45fc79 100644 --- a/apps/dav/lib/Connector/Sabre/LockPlugin.php +++ b/apps/dav/lib/Connector/Sabre/LockPlugin.php @@ -47,7 +47,7 @@ class LockPlugin extends ServerPlugin { public function initialize(\Sabre\DAV\Server $server) { $this->server = $server; $this->server->on('beforeMethod:*', [$this, 'getLock'], 50); - $this->server->on('afterMethod', [$this, 'releaseLock'], 50); + $this->server->on('afterMethod:*', [$this, 'releaseLock'], 50); } public function getLock(RequestInterface $request) {