File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1414use OCP \EventDispatcher \IEventListener ;
1515use Psr \Container \ContainerInterface ;
1616
17+ /** @template-implements IEventListener<Event|SabrePluginAddEvent|BeforeSabrePubliclyLoadedEvent> */
1718class AddSabrePluginListener implements IEventListener {
1819
1920 public function __construct (
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ namespace OC\Hooks {
3232 }
3333}
3434
35+ namespace OCA\DAV\Events {
36+ class SabrePluginAddEvent {}
37+ }
38+
3539namespace OCA\Federation {
3640 class TrustedServers {
3741 public function getServers() {
@@ -147,3 +151,30 @@ namespace OCA\Talk\Events {
147151 }
148152 }
149153}
154+
155+ namespace use Sabre\DAV {
156+ interface INode {}
157+
158+ class PropFind {
159+ /**
160+ * @return string[]
161+ */
162+ public function getRequestedProperties(): array {
163+ return [];
164+ }
165+
166+ public function get(string $key) {
167+ return null;
168+ }
169+
170+ public function set(string $key, $value) {}
171+
172+ public function handle(string $key, $valueOrCallable): void {}
173+ }
174+
175+ class Server {
176+ public function on(string $eventName, callable $callable): void {}
177+ }
178+
179+ class ServerPlugin {}
180+ }
You can’t perform that action at this time.
0 commit comments