encapsulate templates

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-10-31 09:18:05 +01:00 committed by Julius Härtl
parent e52793c69e
commit bccf236738
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,9 @@ class Manager implements IManager {
$templates = $creator->getTemplates(); $templates = $creator->getTemplates();
} }
} }
return $templates; $return = [];
$return['templates'] = $templates;
return $return;
} }
public function create(string $path, string $editorId, string $creatorId, $templateId = null): string { public function create(string $path, string $editorId, string $creatorId, $templateId = null): string {