Merge pull request #20577 from nextcloud/bugfix/noid/sabre4_aftermethod
Fix usages of afterMethod -> afterMethod:*
This commit is contained in:
commit
aa79f9ada2
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue