@@ -30,19 +30,19 @@ discard block |
||
30 | 30 | |
31 | 31 | $eventDispatcher = \OC::$server->getEventDispatcher(); |
32 | 32 | $eventDispatcher->addListener( |
33 | - 'OCA\Files::loadAdditionalScripts', |
|
34 | - function() { |
|
35 | - // FIXME: no public API for these ? |
|
36 | - \OCP\Util::addScript('dist/systemtags'); |
|
37 | - \OCP\Util::addScript('systemtags', 'systemtags'); |
|
38 | - } |
|
33 | + 'OCA\Files::loadAdditionalScripts', |
|
34 | + function() { |
|
35 | + // FIXME: no public API for these ? |
|
36 | + \OCP\Util::addScript('dist/systemtags'); |
|
37 | + \OCP\Util::addScript('systemtags', 'systemtags'); |
|
38 | + } |
|
39 | 39 | ); |
40 | 40 | |
41 | 41 | $managerListener = function(ManagerEvent $event) { |
42 | - $application = new \OCP\AppFramework\App('systemtags'); |
|
43 | - /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
44 | - $listener = $application->getContainer()->query(Listener::class); |
|
45 | - $listener->event($event); |
|
42 | + $application = new \OCP\AppFramework\App('systemtags'); |
|
43 | + /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
44 | + $listener = $application->getContainer()->query(Listener::class); |
|
45 | + $listener->event($event); |
|
46 | 46 | }; |
47 | 47 | |
48 | 48 | $eventDispatcher->addListener(ManagerEvent::EVENT_CREATE, $managerListener); |
@@ -50,23 +50,23 @@ discard block |
||
50 | 50 | $eventDispatcher->addListener(ManagerEvent::EVENT_UPDATE, $managerListener); |
51 | 51 | |
52 | 52 | $mapperListener = function(MapperEvent $event) { |
53 | - $application = new \OCP\AppFramework\App('systemtags'); |
|
54 | - /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
55 | - $listener = $application->getContainer()->query(Listener::class); |
|
56 | - $listener->mapperEvent($event); |
|
53 | + $application = new \OCP\AppFramework\App('systemtags'); |
|
54 | + /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
55 | + $listener = $application->getContainer()->query(Listener::class); |
|
56 | + $listener->mapperEvent($event); |
|
57 | 57 | }; |
58 | 58 | |
59 | 59 | $eventDispatcher->addListener(MapperEvent::EVENT_ASSIGN, $mapperListener); |
60 | 60 | $eventDispatcher->addListener(MapperEvent::EVENT_UNASSIGN, $mapperListener); |
61 | 61 | |
62 | 62 | \OCA\Files\App::getNavigationManager()->add(function () { |
63 | - $l = \OC::$server->getL10N('systemtags'); |
|
64 | - return [ |
|
65 | - 'id' => 'systemtagsfilter', |
|
66 | - 'appname' => 'systemtags', |
|
67 | - 'script' => 'list.php', |
|
68 | - 'order' => 25, |
|
69 | - 'name' => $l->t('Tags'), |
|
70 | - ]; |
|
63 | + $l = \OC::$server->getL10N('systemtags'); |
|
64 | + return [ |
|
65 | + 'id' => 'systemtagsfilter', |
|
66 | + 'appname' => 'systemtags', |
|
67 | + 'script' => 'list.php', |
|
68 | + 'order' => 25, |
|
69 | + 'name' => $l->t('Tags'), |
|
70 | + ]; |
|
71 | 71 | }); |
72 | 72 |