summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-19 13:15:14 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-07-19 13:15:14 +0200
commit7389567c7d05ba994533b7273cba1e5818a20b94 (patch)
treed105ae50b58c3836de514969f65525e5c37ebb96 /core/Controller
parentd63c122ec0071cc1d0417eaa5eb1a85e41290263 (diff)
downloadnextcloud-server-7389567c7d05ba994533b7273cba1e5818a20b94.tar.gz
nextcloud-server-7389567c7d05ba994533b7273cba1e5818a20b94.zip
Remove Task::factory method
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/TextProcessingApiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/TextProcessingApiController.php b/core/Controller/TextProcessingApiController.php
index 0c723ebace3..58036fb25bc 100644
--- a/core/Controller/TextProcessingApiController.php
+++ b/core/Controller/TextProcessingApiController.php
@@ -91,7 +91,7 @@ class TextProcessingApiController extends \OCP\AppFramework\OCSController {
*/
public function schedule(string $input, string $type, string $appId, string $identifier = ''): DataResponse {
try {
- $task = Task::factory($type, $input, $this->userId, $appId, $identifier);
+ $task = new Task($type, $input, $this->userId, $appId, $identifier);
} catch (InvalidArgumentException) {
return new DataResponse(['message' => $this->l->t('Requested task type does not exist')], Http::STATUS_BAD_REQUEST);
}