getContainer(); $hooks = new Hooks( $container->get(IRootFolder::class), $container->get(IDBConnection::class), ); $hooks->register(); /** @psalm-suppress DeprecatedMethod */ Util::connectHook('\OCP\Config', 'js', 'OCA\Epubreader\Hooks', 'announce_settings'); Util::addscript(self::APP_ID, 'plugin'); } }