Fix usages of afterMethod -> afterMethod:*

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
pull/20577/head
Georg Ehrke 6 years ago
parent b1a90da347
commit effcd58e14
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
  1. 2
      apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php
  2. 2
      apps/dav/lib/Connector/Sabre/LockPlugin.php

@ -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…
Cancel
Save