summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-08-27 17:40:00 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-09 22:56:02 +0200
commit26b19b73a46f714031237aa838c0011541f2a8c9 (patch)
treecaf03f763d966829b1fee0a3a47b8b5baa53da0a /apps/workflowengine/lib
parent4c2fdbb9085514692bb86a73bb415a41ccd209f4 (diff)
downloadnextcloud-server-26b19b73a46f714031237aa838c0011541f2a8c9.tar.gz
nextcloud-server-26b19b73a46f714031237aa838c0011541f2a8c9.zip
remove IEntity's getId in favor of class name
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r--apps/workflowengine/lib/Entity/File.php4
-rw-r--r--apps/workflowengine/lib/Manager.php2
-rw-r--r--apps/workflowengine/lib/Settings/ASettings.php2
3 files changed, 2 insertions, 6 deletions
diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php
index 0ba3502450a..d4f41625e4e 100644
--- a/apps/workflowengine/lib/Entity/File.php
+++ b/apps/workflowengine/lib/Entity/File.php
@@ -41,10 +41,6 @@ class File implements IEntity {
$this->urlGenerator = $urlGenerator;
}
- public function getId(): string {
- return 'WorkflowEngine_Entity_File';
- }
-
public function getName(): string {
return $this->l10n->t('File');
}
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php
index 0a1b7fab6c5..adde5309195 100644
--- a/apps/workflowengine/lib/Manager.php
+++ b/apps/workflowengine/lib/Manager.php
@@ -570,7 +570,7 @@ class Manager implements IManager, IEntityAware {
* @since 18.0.0
*/
public function registerEntity(IEntity $entity): void {
- $this->registeredEntities[$entity->getId()] = $entity;
+ $this->registeredEntities[get_class($entity)] = $entity;
}
public function registerOperation(IOperation $operator): void {
diff --git a/apps/workflowengine/lib/Settings/ASettings.php b/apps/workflowengine/lib/Settings/ASettings.php
index af3208fce27..7423c51fd93 100644
--- a/apps/workflowengine/lib/Settings/ASettings.php
+++ b/apps/workflowengine/lib/Settings/ASettings.php
@@ -131,7 +131,7 @@ abstract class ASettings implements ISettings {
}, $entity->getEvents());
return [
- 'id' => $entity->getId(),
+ 'id' => get_class($entity),
'icon' => $entity->getIcon(),
'name' => $entity->getName(),
'events' => $events,