summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DirectEditing/Manager.php5
-rw-r--r--lib/public/DirectEditing/ACreateFromTemplate.php2
-rw-r--r--lib/public/DirectEditing/IEditor.php6
3 files changed, 5 insertions, 8 deletions
diff --git a/lib/private/DirectEditing/Manager.php b/lib/private/DirectEditing/Manager.php
index fdf0a1f0f0f..26adad9e572 100644
--- a/lib/private/DirectEditing/Manager.php
+++ b/lib/private/DirectEditing/Manager.php
@@ -64,15 +64,12 @@ class Manager implements IManager {
ISecureRandom $random,
IDBConnection $connection,
IUserSession $userSession,
- IRootFolder $rootFolder,
- IEventDispatcher $eventDispatcher
+ IRootFolder $rootFolder
) {
$this->random = $random;
$this->connection = $connection;
$this->userId = $userSession->getUser() ? $userSession->getUser()->getUID() : null;
$this->rootFolder = $rootFolder;
- $eventDispatcher->dispatch(RegisterDirectEditorEvent::class, new RegisterDirectEditorEvent($this));
-
}
public function registerDirectEditor(IEditor $directEditor): void {
diff --git a/lib/public/DirectEditing/ACreateFromTemplate.php b/lib/public/DirectEditing/ACreateFromTemplate.php
index a731e8be595..89420a63743 100644
--- a/lib/public/DirectEditing/ACreateFromTemplate.php
+++ b/lib/public/DirectEditing/ACreateFromTemplate.php
@@ -32,7 +32,7 @@ abstract class ACreateFromTemplate extends ACreateEmpty {
* List of available templates for the create from template action
*
* @since 18.0.0
- * @return array
+ * @return ATemplate[]
*/
abstract public function getTemplates(): array;
diff --git a/lib/public/DirectEditing/IEditor.php b/lib/public/DirectEditing/IEditor.php
index a4fc87f7e15..a2bc0d74255 100644
--- a/lib/public/DirectEditing/IEditor.php
+++ b/lib/public/DirectEditing/IEditor.php
@@ -56,7 +56,7 @@ interface IEditor {
* A list of mimetypes that should open the editor by default
*
* @since 18.0.0
- * @return array
+ * @return string[]
*/
public function getMimetypes(): array;
@@ -64,7 +64,7 @@ interface IEditor {
* A list of mimetypes that can be opened in the editor optionally
*
* @since 18.0.0
- * @return array
+ * @return string[]
*/
public function getMimetypesOptional(): array;
@@ -72,7 +72,7 @@ interface IEditor {
* Return a list of file creation options to be presented to the user
*
* @since 18.0.0
- * @return array of ICreateFromTemplate|ICreateEmpty
+ * @return ACreateFromTemplate[]|ACreateEmpty[]
*/
public function getCreators(): array;