diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-01-14 15:27:06 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-01-14 15:27:06 +0300 |
commit | 5a9569900cf90642f9e2525644db4fb4684c72e2 (patch) | |
tree | 85f2a039b0d31a88c2881815803c3a451b58e5de /lib | |
parent | b15c6be81804d7da3c2f821267cea6fe83e8ddb4 (diff) |
Add controller description and fix typings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/DocumentAPIController.php | 6 | ||||
-rw-r--r-- | lib/TemplateManager.php | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/Controller/DocumentAPIController.php b/lib/Controller/DocumentAPIController.php index 86cb2081..dc155446 100644 --- a/lib/Controller/DocumentAPIController.php +++ b/lib/Controller/DocumentAPIController.php @@ -59,6 +59,12 @@ class DocumentAPIController extends \OCP\AppFramework\OCSController { } /** + * Create a file from a public share link of a folder + * + * As the server template API for file creation is not available there, we need a dedicated API + * in order to properly create files as public page visitors. This is being called in the new file + * actions in src/view/NewFileMenu.js + * * @NoAdminRequired * @PublicPage */ diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php index 803f8be9..f32b31ed 100644 --- a/lib/TemplateManager.php +++ b/lib/TemplateManager.php @@ -107,7 +107,7 @@ class TemplateManager { ]; public function __construct( - $userId, + ?string $userId, IConfig $config, IAppData $appData, IURLGenerator $urlGenerator, @@ -144,7 +144,7 @@ class TemplateManager { } } - public function setUserId($userId) { + public function setUserId(?string $userId): void { $this->userId = $userId; } |