Skip to content
Snippets Groups Projects
Unverified Commit aa79f9ad authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #20577 from nextcloud/bugfix/noid/sabre4_aftermethod

Fix usages of afterMethod -> afterMethod:*
parents 89bd8ea4 effcd58e
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ class AnonymousOptionsPlugin extends ServerPlugin { ...@@ -75,7 +75,7 @@ class AnonymousOptionsPlugin extends ServerPlugin {
// setup a fake tree for anonymous access // setup a fake tree for anonymous access
$this->server->tree = new Tree(new Directory('')); $this->server->tree = new Tree(new Directory(''));
$corePlugin->httpOptions($request, $response); $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->emit('afterMethod:OPTIONS', [$request, $response]);
$this->server->sapi->sendResponse($response); $this->server->sapi->sendResponse($response);
......
...@@ -47,7 +47,7 @@ class LockPlugin extends ServerPlugin { ...@@ -47,7 +47,7 @@ class LockPlugin extends ServerPlugin {
public function initialize(\Sabre\DAV\Server $server) { public function initialize(\Sabre\DAV\Server $server) {
$this->server = $server; $this->server = $server;
$this->server->on('beforeMethod:*', [$this, 'getLock'], 50); $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) { public function getLock(RequestInterface $request) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment