From 027d1cad263a407a3e4ad1f9d07236dbc0cdcd9b Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Fri, 24 Oct 2025 21:30:05 +0200 Subject: [PATCH] fix: Expose already used public interface methods Signed-off-by: Julius Knorr --- build/psalm-baseline.xml | 1 - lib/public/DirectEditing/IManager.php | 15 ++++++++++++++- lib/public/DirectEditing/IToken.php | 6 ++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 422d886658a..8f9ea9e3bf4 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1399,7 +1399,6 @@ - diff --git a/lib/public/DirectEditing/IManager.php b/lib/public/DirectEditing/IManager.php index dcc3493bcf2..ab9e15fb5cc 100644 --- a/lib/public/DirectEditing/IManager.php +++ b/lib/public/DirectEditing/IManager.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 * diff --git a/lib/public/DirectEditing/IToken.php b/lib/public/DirectEditing/IToken.php index 64abbf939f4..af26377fcbc 100644 --- a/lib/public/DirectEditing/IToken.php +++ b/lib/public/DirectEditing/IToken.php @@ -62,4 +62,10 @@ interface IToken { * @return string */ public function getUser(): string; + + /** + * @since 33.0.0 + * @return string + */ + public function getToken(): string; }