]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix undefined systemtags stuff 2238/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 22 Nov 2016 13:59:51 +0000 (14:59 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 22 Nov 2016 13:59:51 +0000 (14:59 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/systemtags/appinfo/app.php

index 039df2ac9f7b3287b920ee3d247fe4a483605161..2c095753ce8e049394965acdca20442af4aaf858 100644 (file)
@@ -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');