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

Fix usages of afterMethod -> afterMethod:*
This commit is contained in:
Roeland Jago Douma 2020-04-21 13:26:13 +02:00 committed by GitHub
commit aa79f9ada2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View 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);

View 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) {