Fix usages of afterMethod -> afterMethod:*

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-04-21 10:19:06 +02:00
parent b1a90da347
commit effcd58e14
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
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) {