Fix usages of afterMethod -> afterMethod:*
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
b1a90da347
commit
effcd58e14
|
@ -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