|
|
|
|
@ -24,7 +24,6 @@ use OCP\BeforeSabrePubliclyLoadedEvent; |
|
|
|
|
use OCP\EventDispatcher\IEventDispatcher; |
|
|
|
|
use OCP\SystemTag\ManagerEvent; |
|
|
|
|
use OCP\SystemTag\MapperEvent; |
|
|
|
|
use OCP\Util; |
|
|
|
|
|
|
|
|
|
class Application extends App implements IBootstrap { |
|
|
|
|
public const APP_ID = 'systemtags'; |
|
|
|
|
@ -43,16 +42,6 @@ class Application extends App implements IBootstrap { |
|
|
|
|
|
|
|
|
|
public function boot(IBootContext $context): void { |
|
|
|
|
$context->injectFn(function (IEventDispatcher $dispatcher) use ($context): void { |
|
|
|
|
/* |
|
|
|
|
* @todo move the OCP events and then move the registration to `register` |
|
|
|
|
*/ |
|
|
|
|
$dispatcher->addListener( |
|
|
|
|
LoadAdditionalScriptsEvent::class, |
|
|
|
|
function (): void { |
|
|
|
|
Util::addInitScript(self::APP_ID, 'init'); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$managerListener = function (ManagerEvent $event) use ($context): void { |
|
|
|
|
/** @var Listener $listener */ |
|
|
|
|
$listener = $context->getServerContainer()->query(Listener::class); |
|
|
|
|
|