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 18:07:42 +0300 |
commit | 6b96051be54ce93ee7b8b4256a42ee7caf3bddd3 (patch) | |
tree | f289ee8ed23673215476013488f41010b109c19b /lib | |
parent | c3237172e0004a1ac51a522fd54de9ba6cec2cf5 (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; } |