File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -90,4 +90,13 @@ Developed with ❤️ by [LibreCode](https://librecode.coop). Help us transform
90
90
<route >libresign.page.index</route >
91
91
</navigation >
92
92
</navigations >
93
+ <sabre >
94
+ <plugins >
95
+ <plugin >OCA\Libresign\Dav\SignatureStatusPlugin</plugin >
96
+ </plugins >
97
+ </sabre >
98
+ <types >
99
+ <filesystem />
100
+ <dav />
101
+ </types >
93
102
</info >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace OCA \Libresign \Dav ;
4
+
5
+ use Sabre \DAV \INode ;
6
+ use Sabre \DAV \PropFind ;
7
+ use Sabre \DAV \Server ;
8
+ use Sabre \DAV \ServerPlugin ;
9
+
10
+ class SignatureStatusPlugin extends ServerPlugin {
11
+ protected $ server ;
12
+
13
+ public function initialize (Server $ server ) {
14
+ $ this ->server = $ server ;
15
+ $ server ->on ('propFind ' , [$ this , 'propFind ' ]);
16
+ }
17
+
18
+ public function propFind (PropFind $ propFind , INode $ node ) {
19
+ $ propFind ->handle ('{http://nextcloud.org/ns}node-name ' , $ node ->getName ());
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments