diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-10 14:29:21 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-10 15:22:55 +0200 |
commit | c0be7e329f8a68ac70efb741a58530678c19a721 (patch) | |
tree | 49814c1be13ec6fef64227e930a8530c093c5db6 /apps/workflowengine/lib/AppInfo | |
parent | 9c1ee2e0ba84e7ad1f707bdf6080ec3df1680040 (diff) | |
download | nextcloud-server-c0be7e329f8a68ac70efb741a58530678c19a721.tar.gz nextcloud-server-c0be7e329f8a68ac70efb741a58530678c19a721.zip |
Prefer typed event over string based ones
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/workflowengine/lib/AppInfo')
-rw-r--r-- | apps/workflowengine/lib/AppInfo/Application.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/AppInfo/Application.php b/apps/workflowengine/lib/AppInfo/Application.php index ddac4a74e28..8f762f0d707 100644 --- a/apps/workflowengine/lib/AppInfo/Application.php +++ b/apps/workflowengine/lib/AppInfo/Application.php @@ -36,6 +36,7 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventDispatcher; use OCP\ILogger; use OCP\IServerContainer; +use OCP\WorkflowEngine\Events\LoadSettingsScriptsEvent; use OCP\WorkflowEngine\IEntity; use OCP\WorkflowEngine\IEntityCompat; use OCP\WorkflowEngine\IOperation; @@ -51,7 +52,7 @@ class Application extends App implements IBootstrap { public function register(IRegistrationContext $context): void { $context->registerServiceAlias('RequestTimeController', RequestTime::class); $context->registerEventListener( - 'OCP\WorkflowEngine::loadAdditionalSettingScripts', + LoadSettingsScriptsEvent::class, LoadAdditionalSettingsScriptsListener::class, -100 ); |