From 9619f49ba44e264049da5b00e1d38f40a141e491 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 22 Nov 2016 14:59:51 +0100 Subject: [PATCH] Fix undefined systemtags stuff Signed-off-by: Roeland Jago Douma --- apps/systemtags/appinfo/app.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/systemtags/appinfo/app.php b/apps/systemtags/appinfo/app.php index 039df2ac9f7..2c095753ce8 100644 --- a/apps/systemtags/appinfo/app.php +++ b/apps/systemtags/appinfo/app.php @@ -21,8 +21,6 @@ * */ -use OCA\SystemTags\Activity\Extension; -use OCA\SystemTags\Activity\Listener; use OCP\SystemTag\ManagerEvent; use OCP\SystemTag\MapperEvent; @@ -46,7 +44,7 @@ $eventDispatcher->addListener( } ); -$managerListener = function(ManagerEvent $event) use ($activityManager) { +$managerListener = function(ManagerEvent $event) { $application = new \OCP\AppFramework\App('systemtags'); /** @var \OCA\SystemTags\Activity\Listener $listener */ $listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener'); @@ -57,7 +55,7 @@ $eventDispatcher->addListener(ManagerEvent::EVENT_CREATE, $managerListener); $eventDispatcher->addListener(ManagerEvent::EVENT_DELETE, $managerListener); $eventDispatcher->addListener(ManagerEvent::EVENT_UPDATE, $managerListener); -$mapperListener = function(MapperEvent $event) use ($activityManager) { +$mapperListener = function(MapperEvent $event) { $application = new \OCP\AppFramework\App('systemtags'); /** @var \OCA\SystemTags\Activity\Listener $listener */ $listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener'); -- 2.39.5