mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
fix: Expose already used public interface methods
Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
parent
b469840b3d
commit
027d1cad26
3 changed files with 20 additions and 2 deletions
|
|
@ -1399,7 +1399,6 @@
|
|||
</InvalidArgument>
|
||||
<UndefinedInterfaceMethod>
|
||||
<code><![CDATA[getTemplates]]></code>
|
||||
<code><![CDATA[open]]></code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="apps/files/lib/Helper.php">
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ interface IManager {
|
|||
public function edit(string $token): Response;
|
||||
|
||||
/**
|
||||
* Create a new token based on the file path and editor details
|
||||
* Create a file and generate a token based on the file path and editor details
|
||||
*
|
||||
* @since 18.0.0
|
||||
* @param string $path
|
||||
|
|
@ -49,6 +49,19 @@ interface IManager {
|
|||
*/
|
||||
public function create(string $path, string $editorId, string $creatorId, $templateId = null): string;
|
||||
|
||||
/**
|
||||
* Create a token based on an existing file path and editor details
|
||||
*
|
||||
* @since 33.0.0
|
||||
* @param string $filePath
|
||||
* @param string|null $editorId
|
||||
* @param int|null $fileId
|
||||
* @return string
|
||||
* @throws NotPermittedException
|
||||
* @throws RuntimeException
|
||||
*/
|
||||
public function open(string $filePath, ?string $editorId = null, ?int $fileId = null): string;
|
||||
|
||||
/**
|
||||
* Get the token details for a given token
|
||||
*
|
||||
|
|
|
|||
|
|
@ -62,4 +62,10 @@ interface IToken {
|
|||
* @return string
|
||||
*/
|
||||
public function getUser(): string;
|
||||
|
||||
/**
|
||||
* @since 33.0.0
|
||||
* @return string
|
||||
*/
|
||||
public function getToken(): string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue