fix: Expose already used public interface methods

Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
Julius Knorr 2025-10-24 21:30:05 +02:00
parent b469840b3d
commit 027d1cad26
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF
3 changed files with 20 additions and 2 deletions

View file

@ -1399,7 +1399,6 @@
</InvalidArgument>
<UndefinedInterfaceMethod>
<code><![CDATA[getTemplates]]></code>
<code><![CDATA[open]]></code>
</UndefinedInterfaceMethod>
</file>
<file src="apps/files/lib/Helper.php">

View file

@ -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
*

View file

@ -62,4 +62,10 @@ interface IToken {
* @return string
*/
public function getUser(): string;
/**
* @since 33.0.0
* @return string
*/
public function getToken(): string;
}