Fix undefined systemtags stuff
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b5fab4ed9c
commit
9619f49ba4
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue