diff options
author | Robin Appelman <robin@icewind.nl> | 2019-11-04 21:25:00 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-11-04 21:51:37 +0300 |
commit | ef2fb51065aabb90e8e4234d84a78f4e047f7d1c (patch) | |
tree | a4a0152950139fb23255f68d7aaf6afd8a3b730f /apps/systemtags/appinfo | |
parent | 5ca27085fcb01db920326ea9ad892cc9a49253ab (diff) |
remove missed manual Application instance constructions
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/systemtags/appinfo')
-rw-r--r-- | apps/systemtags/appinfo/app.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/systemtags/appinfo/app.php b/apps/systemtags/appinfo/app.php index 82eb2a29f4b..8c0341b5894 100644 --- a/apps/systemtags/appinfo/app.php +++ b/apps/systemtags/appinfo/app.php @@ -39,9 +39,8 @@ $eventDispatcher->addListener( ); $managerListener = function(ManagerEvent $event) { - $application = new \OCP\AppFramework\App('systemtags'); /** @var \OCA\SystemTags\Activity\Listener $listener */ - $listener = $application->getContainer()->query(Listener::class); + $listener = \OC::$server->query(Listener::class); $listener->event($event); }; @@ -52,7 +51,7 @@ $eventDispatcher->addListener(ManagerEvent::EVENT_UPDATE, $managerListener); $mapperListener = function(MapperEvent $event) { $application = new \OCP\AppFramework\App('systemtags'); /** @var \OCA\SystemTags\Activity\Listener $listener */ - $listener = $application->getContainer()->query(Listener::class); + $listener = \OC::$server->query(Listener::class); $listener->mapperEvent($event); }; |