mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
fix(systemtags): remove duplicated event listener
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
6ca11f73e3
commit
8b322b2338
1 changed files with 0 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue