fix(systemtags): remove duplicated event listener

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2026-01-27 17:42:06 +01:00
parent 6ca11f73e3
commit 8b322b2338
No known key found for this signature in database
GPG key ID: 7E849AE05218500F

View file

@ -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);