summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-04-21 10:19:06 +0200
committerGeorg Ehrke <developer@georgehrke.com>2020-04-21 10:19:06 +0200
commiteffcd58e14b2c17d5d411441ad7c04d909e52c19 (patch)
treeed321dc06257f335e62e4074e8acf111aadf8907
parentb1a90da34730a6c119df4cb5b992177d8dbedeca (diff)
downloadnextcloud-server-effcd58e14b2c17d5d411441ad7c04d909e52c19.tar.gz
nextcloud-server-effcd58e14b2c17d5d411441ad7c04d909e52c19.zip
Fix usages of afterMethod -> afterMethod:*
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
-rw-r--r--apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/LockPlugin.php2
2 files changed, 2 insertions, 2 deletions
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) {