// 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);
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) {