]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix usages of afterMethod -> afterMethod:* 20577/head
authorGeorg Ehrke <developer@georgehrke.com>
Tue, 21 Apr 2020 08:19:06 +0000 (10:19 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Tue, 21 Apr 2020 08:19:06 +0000 (10:19 +0200)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php
apps/dav/lib/Connector/Sabre/LockPlugin.php

index b693b50f8e3293760aaf19f95a809c3437c00a65..63e577359725550ff64b86c705c4c5d92dbfc3de 100644 (file)
@@ -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);
index a8e3818c5c926adbd4904683a6b0bcb51aee89d1..7c07f45fc7947c4dd32bd38f429d90f6bf35a590 100644 (file)
@@ -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) {