18
18
use OCP \Files \IRootFolder ;
19
19
use OCP \IGroupManager ;
20
20
use OCP \IUserManager ;
21
+ use Psr \Log \LoggerInterface ;
21
22
use Sabre \DAV \Exception \Forbidden ;
22
23
use Sabre \DAV \Exception \NotFound ;
23
24
use Sabre \DAV \ICollection ;
@@ -33,6 +34,7 @@ public function __construct(
33
34
private IUserManager $ userManager ,
34
35
private IGroupManager $ groupManager ,
35
36
private UserConfigService $ userConfigService ,
37
+ private LoggerInterface $ logger ,
36
38
) {
37
39
}
38
40
@@ -69,9 +71,9 @@ public function createDirectory($name) {
69
71
public function getChild ($ name ) {
70
72
switch ($ name ) {
71
73
case AlbumsHome::NAME :
72
- return new AlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userConfigService );
74
+ return new AlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userConfigService , $ this -> logger );
73
75
case SharedAlbumsHome::NAME :
74
- return new SharedAlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userManager , $ this ->groupManager , $ this ->userConfigService );
76
+ return new SharedAlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userManager , $ this ->groupManager , $ this ->userConfigService , $ this -> logger );
75
77
case PlacesHome::NAME :
76
78
return new PlacesHome ($ this ->userId , $ this ->rootFolder , $ this ->reverseGeoCoderService , $ this ->placeMapper );
77
79
}
@@ -84,8 +86,8 @@ public function getChild($name) {
84
86
*/
85
87
public function getChildren (): array {
86
88
return [
87
- new AlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userConfigService ),
88
- new SharedAlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userManager , $ this ->groupManager , $ this ->userConfigService ),
89
+ new AlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userConfigService , $ this -> logger ),
90
+ new SharedAlbumsHome ($ this ->principalInfo , $ this ->albumMapper , $ this ->userId , $ this ->rootFolder , $ this ->userManager , $ this ->groupManager , $ this ->userConfigService , $ this -> logger ),
89
91
new PlacesHome ($ this ->userId , $ this ->rootFolder , $ this ->reverseGeoCoderService , $ this ->placeMapper ),
90
92
];
91
93
}
0 commit comments